You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stefan Scholl <st...@no-spoon.de> on 2005/03/12 19:24:58 UTC
[users@httpd] mod_negotiation and wrong Last-Modified
Hi!
I use Apache 1.3.33 (Gentoo) under Linux 2.6 together with mod_lisp
2.42. mod_lisp is a simple handler which communicates with running
Lisp images.
This is what I've found today:
When setting "Last-Modified" (the handler correctly calls
ap_parseHTTPdate(), ap_update_mtime(), and ap_set_last_modified())
the resulting response header has an other date in the
"Last-Modified" field. It is the mtime of the DocumentRoot. But only
if the mtime of DocumentRoot is _newer_ than the date you want to
set.
There's no "Last-Modified" in the response header when you don't set
it yourself.
ap_update_mtime() only updates r->mtime when the supplied time is
_newer_. So I've guessed that some other handler sets r->mtime to
the DocumentRoot.
I've found mod_negotiation. After removing it from the server config
the response header had the correct "Last-Modified" date.
2 possible workarounds:
1.) touch the DocumentRoot to an older date
2.) remove mod_negotiation
Regards,
Stefan
--
Web: http://www.no-spoon.de/ -*- IRC: stesch @ freenode
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org