Apache Server configuration support - Expires header without mod_expires?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > June 2007 > Expires header without mod_expires?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Expires header without mod_expires?
Jonathan Stein

2007-05-23, 1:21 pm

Hi.

I have a problem with Apache 2.2.

All image files (and probably other files too) are served with an
"expires" header, and the expiration time is the current time, so all
images files are re-requested when a page is reloaded.

As far as I can see, mod_expires is not installed! Could that be true?

Any ideas how to disable the expires header?

Regards

Jonathan
Jonathan Stein

2007-05-23, 7:22 pm

Jonathan Stein wrote:

> All image files (and probably other files too) are served with an
> "expires" header, and the expiration time is the current time, so all
> images files are re-requested when a page is reloaded.


I have investigated this a little further. The expires header does not
appear if I do a HEAD request. I suppose GET and HEAD should produce the
same headers...

Also, if I put "ExpiresActive Off" in an .htaccess file, I get a 500
Internal Server Error. If I enable mod_expires, there are no errors (but
I still get the Expires header).
If I also add an ExpiresDefault statement in .htaccess, I get the
correct Expires header - and a cache-control header.

So I'm quite sure that my original Expires header comes from something
else than mod_expires...

Any ideas of which other module, that could be setting an Expires header?

Regards

Jonathan
Jonathan Stein

2007-06-05, 7:30 pm

Jonathan Stein wrote:

> All image files (and probably other files too) are served with an
> "expires" header, and the expiration time is the current time, so all
> images files are re-requested when a page is reloaded.


Does anyone have an idea of which modules, that could add the expires
header?

Regards

Jonathan
Jonathan Stein

2007-06-11, 1:25 pm

Jonathan Stein wrote:
> Jonathan Stein wrote:
>
>
> Does anyone have an idea of which modules, that could add the expires
> header?


mod_cache, if anyone should run into the same problem... (The default
cache expiration time was set to 1 second, so "Expires" time was
actually request time + 1 second).

Regards

Jonathan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com