Bug #1236
closedLast-Modified header suppressed in 1.4.15
Description
After upgrading to lighttpd 1.4.15 I no longer get the Last-Modified header returned when making a HEAD request.
This is an example of what is returned from a HEAD request now:
HTTP/1.1 200 OK Date: Fri, 15 Jun 2007 04:22:04 GMT Server: lighttpd/1.4.15 Content-Type: application/octet-stream Accept-Ranges: bytes Content-Length: 1531 Connection: close
Updated by jan over 17 years ago
- Status changed from New to Fixed
- Resolution set to wontfix
this is a "feature". If there is no content-type set, we remove the Last-Modified header to protect the user from firefoxs caching. Otherwise FF will not detect the changed Content-Type.
Updated by Anonymous over 17 years ago
Do you have a reference that describes the "problem" with Firefox's caching?
I'd rather have the ability to enable or disable this behavior in the configuration file.
The resources I'm delivering in which the Last-Modified header is important never change their content-type -- specifically they are jars delivered as static files.
Updated by admin over 17 years ago
Otherwise FF will not detect the changed Content-Type.
Isn't that a server-side bug?
Are you allowed to change the content-type header without bumping the last modified header?
Updated by darix over 17 years ago
Yes this is a workaround for a bug in Firefox.
We have to often seen users bugged by firefox caching too much, and once they cleared the cache and restarted the browser, their changes suddenly "took effect".
Thats why we have in the #lighttpd topic: "Use curl for testing. Firefox caches too much."
Updated by Anonymous about 17 years ago
Hi,
You wrote that Last-Modified is removed if no Content-Type is set, but I can see the Content-Type header in your posting as well as on my server responses.
We're having issues here with Squid not wanting to cache files if no Last-Modified or ETag header is present. What is the easiest way to get the get the Last-Modified header back for static files, without having to use an additional module like mod_setenv?
Updated by Anonymous over 16 years ago
add this last in your mimetype.assign and you will generate Last-Modified again.
- make the default mime type application/octet-stream.
"" => "application/octet-stream"
Updated by admin over 16 years ago
make the default mime type
That's not a good thing to do. If the web server doesn't know, it shouldn't make one up.
Updated by pabs over 12 years ago
Is Firefox still buggy? It would be nice if this issue could finally be fixed.
Updated by darix over 12 years ago
- Description updated (diff)
- Missing in 1.5.x set to No
there is no issue. configure proper mime types and you are fine.
Also available in: Atom