Skip to content

Commit

Permalink
Minor ephasis fixes for serve stale documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Oct 18, 2022
1 parent 879a1de commit a30068e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/topics/serve-stale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ possible answers. If such a record is found it is immediately returned to the
client (cache response speed!). But contrary to normal cache replies, Unbound
continues resolving and hopefully updating the cached record.

The immediate downside is obvious: the expired answers rely heavily on the cache
state. Unbound already has the tools to try and tip the scales in its favor with
the prefetch and serve-expired-ttl options.
The immediate downside is obvious: the expired answers rely heavily on the
cache state.
Unbound already has the tools to try and tip the scales in its favor with the
prefetch and ``serve-expired-ttl`` options.

With prefetch, Unbound tries to update a cached record (after first replying to
the client) when the current TTL is within 10% of the original TTL value. The
Expand All @@ -50,7 +51,7 @@ penalty of ~10% in traffic and load from the extra upstream queries, the cache
is kept up-to-date, at least for popular queries.

Rare queries have the inescapable fate of having their records expired past any
meaningful time. The option serve-expired-ttl limits the amount of time an
meaningful time. The option ``serve-expired-ttl`` limits the amount of time an
expired record is supposed to be served. :RFC:`8767#section-5-11` suggests a
value between one and three days.

Expand Down

0 comments on commit a30068e

Please sign in to comment.