GNU bug report logs -
#37207
nginx serving files from the store returns Last-Modified = Epoch
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Gábor, Ludo',
Gábor Boskovits 写道:
> Supressing the last modified header is just an
> add_header Last-Modified "";
> away.
You'll also need:
# Don't honour client If-Modified-Since constraints.
if_modified_since off;
# Nginx's etags are hashes of file timestamp & file length.
etag off;
Turning these off will of course prevent all caching. I don't
know if that would add measurable load to guix.gnu.org (it would
be more problematic if we used a CDN, but it might still make a
difference).
Nix does something both interesting and icky — as always: patch[0]
nginx to look up the realpath() instead, so clients can still
cache using If-None-Match.
Kind regards,
T G-R
[0]: https://github.com/NixOS/nixpkgs/pull/48337
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 5 years and 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.