Expires header without mod_expires?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Expires header without mod_expires?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Expires header without mod_expires?  
Jonathan Stein


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-23-07 06: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





[ Post a follow-up to this message ]



    Re: Expires header without mod_expires?  
Jonathan Stein


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-24-07 12:22 AM

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





[ Post a follow-up to this message ]



    Re: Expires header without mod_expires?  
Jonathan Stein


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-06-07 12:30 AM

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





[ Post a follow-up to this message ]



    Re: Expires header without mod_expires?  
Jonathan Stein


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-11-07 06: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:16 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register