On 26/9/22 21:54, Christian Hesse wrote:
Allan McRae <[email protected]> on Mon, 2022/09/26 20:44:
On 19/9/22 22:52, Christian Hesse wrote:
From: Christian Hesse <[email protected]>
By setting the HTTP header 'Cache-Control: no-cache' when returning with
the status code 404 (not found) the server can indicate that this is a
soft failure. No error message is shown, and server's error count is
not increased.
This can be used by servers that are not expected to be complete, for
example when serving a local cache [0]. In nginx this can be achived by
adding a single directive in location block:
add_header Cache-Control "no-cache";
I am not accepting this patch.
1) "no-cache" to indicate this a cache of packages...
You missed the point. This does not tell not to cache packages.
It does tell not to cache an error. ;)
Fun fact: Searching for the keywords yields a lot of matches for some well
known cloud providers and their proxy software. Looks like the same is used
there not to cache errors.
This is the sort of information that would make considering this as an
option more likely. Can you expand on this with some examples?
Allan