26 Sep
2022
26 Sep
'22
10:44 a.m.
On 19/9/22 22:52, Christian Hesse wrote:
From: Christian Hesse <mail@eworm.de>
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... 2) using a directive that has a completely different meaning. Allan