If-Modified-Since and symbolic links
Downloading a symlinked file makes lighttpd always deliver the file.
% curl -I --header 'If-Modified-Since: Tue, 12 Feb 2013 16:35:11 GMT' http://dl.mylinuxtime.de/arch/eworm/x86_64/eworm.db | head -n1
HTTP/1.1 200 OK
However using the URL pointing to the real file makes lighttpd return a "Not Modified".
eworm@leda ~ % curl -I --header 'If-Modified-Since: Tue, 12 Feb 2013 16:35:11 GMT' http://dl.mylinuxtime.de/arch/eworm/x86_64/eworm.db.tar.gz | head -n1
HTTP/1.1 304 Not Modified
I would expect lighttpd to check against the real file and return "Not Modified" in both cases.
Updated by stbuehler over 6 years ago
hm, changing the link (and have it point somewhere else) could be something you want to see in "Last-Modified"; otoh there are many operations (renaming directories, changing directory symlinks) that change which file you get but won't change Last-Modified (and i don't think this can get fixed in a sane way).
I think the more important question is what we use for creating the ETag - this really should use the referenced file.
Also available in: Atom