diff options
Diffstat (limited to 'spec/dir-spec/directory-cache-operation.md')
-rw-r--r-- | spec/dir-spec/directory-cache-operation.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/dir-spec/directory-cache-operation.md b/spec/dir-spec/directory-cache-operation.md index 9807857..14f9a9c 100644 --- a/spec/dir-spec/directory-cache-operation.md +++ b/spec/dir-spec/directory-cache-operation.md @@ -6,7 +6,7 @@ All directory caches implement this section, except as noted. <a id="dir-spec.txt-4.1"></a> -## Downloading consensus status documents from directory authorities +## Downloading consensus status documents from directory authorities { #download-ns-from-auth } All directory caches try to keep a recent network-status consensus document to serve to clients. A cache ALWAYS @@ -36,7 +36,7 @@ the directory authorities. <a id="dir-spec.txt-4.2"></a> -## Downloading server descriptors from directory authorities +## Downloading server descriptors from directory authorities { #download-desc-from-auth } Periodically (currently, every 10 seconds), directory caches check whether there are any specific descriptors that they do not have and that @@ -61,7 +61,7 @@ descriptor seemed newest.) <a id="dir-spec.txt-4.3"></a> -## Downloading microdescriptors from directory authorities +## Downloading microdescriptors from directory authorities { #download-md-from-auth } Directory mirrors should fetch, cache, and serve each microdescriptor from the authorities. @@ -85,7 +85,7 @@ can be retrieved in a single request.) <a id="dir-spec.txt-4.4"></a> -## Downloading extra-info documents from directory authorities +## Downloading extra-info documents from directory authorities { #download-ei-from-auth } Any cache that chooses to cache extra-info documents should implement this section. @@ -99,7 +99,7 @@ same splitting and back-off rules as in section 4.2. <a id="dir-spec.txt-4.5"></a> -## Consensus diffs +## Consensus diffs { #diffs } Instead of downloading an entire consensus, clients may download a "diff" document containing an ed-style diff from a previous @@ -112,7 +112,7 @@ advertised with the DirCache protocol version "2" or later.) <a id="dir-spec.txt-4.5.1"></a> -### Consensus diff format +### Consensus diff format { #diff-format } Consensus diffs are formatted as follows: @@ -134,7 +134,7 @@ in appendix E. <a id="dir-spec.txt-4.5.2"></a> -### Serving and requesting diffs +### Serving and requesting diffs { #diff-requests } When downloading the current consensus, a client may include an HTTP header of the form @@ -162,6 +162,6 @@ fingerprints as in appendix B. <a id="dir-spec.txt-4.6"></a> -## Retrying failed downloads +## Retrying failed downloads { #retry-as-cache } See section 5.5 below; it applies to caches as well as clients. |