| 13 | |
| 14 | === Caching Tips === |
| 15 | |
| 16 | Tahoe URIs may refer to either immutable or mutable content. URIs for immutable data are simple to cache by mapping the URI to the contents. |
| 17 | |
| 18 | Mutability is independent of read-only capabilities. A read-only capability may refer to mutable content. |
| 19 | |
| 20 | To determine the mutability of a URI, parse the second field of the URI (delimited by ':'): |
| 21 | |
| 22 | * URI:CHK:... : immutable |
| 23 | * URI:LIT:... : immutable |
| 24 | * URI:DIR:... : mutable, writable |
| 25 | * URI:DIR-RO:... : mutable, not writable |
| 26 | |
| 27 | Note: Currently all files are immutable, and all directories are mutable, but in the future the node type (file or directory) and the mutability will be independent. It's a bad idea to rely on the node type to determine mutability. |
| 28 | |