You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Joe Lewis <jo...@joe-lewis.com> on 2007/10/15 17:23:18 UTC

Hook for If-Modified-Since

Hello;

Simply, does anyone know of a hook that I can use to intercept requests
that come in with an If-Modified-Since?

Some background - I have an output filter module that alters the
Last-Modified header.  This works beautifully except in once specific
circumstance - if the document has never fully been served by the filter
and Apache receives the request with an If-Modified-Since header, apache
never calls the output filter to adjust the Last-Modified date - it uses
the date of the file itself.

If after loading apache, someone updates or connects to the website and
requests the full page, from then on everything works fine (I am
updating the request_rec->mtime field, and that took care of some other
issues).

Does anyone know of a hook that can be used to handle If-Modified-Since
headers, or do I have to rely on using a handler hook?

Thanks!
Joe
-- 
Joseph Lewis <http://sharktooth.org/>
"Divide the fire, and you will sooner put it out." - Publius Syrus