Mod expires not working
I have an issue where mod expires is not working for any of my websites.
I have it enabled it globally in HTPPD.conf
ExpiresDefault "access plus 10 days"
Header append Cache-Control "public"
As well as in Litespeed configuration
Enable Expires Yes
Expires Default Not Set
Using PHP suEXEC and Litespeed dedicatedly with Load Apache Configuration set to Yes.
Can you elaborate the 'not working'? Does 'Expires' or 'Cache-Control' header not show up at all or something else?
When I test my vbulletin forum using pagespeed or numerous other site testing tools, all of them tell me that the png files have no expiation specified.
I added png explicitly in the litespeed configuration, but to no avail.
You can check my site if you want at www.bcmtouring.com/forum/
what is your LSWS version? do you have anything in .htaccess override the expires? also, remove 'image/*=A604800' from lsws config and see if apache defined 'ExpiresDefault "access plus 10 days"' is effective for png.
4.1.12 and nothing in .htaccess, because vbseo rules are loaded in httpd.conf.
Removed the image/*=A604800 from the LSWS config and didn't make any difference.
unable to reproduce your issue in our lab. try comment out the mod_expires section in httpd.conf and see any difference.
Removed mod_expires and it made no difference. Could it be that this module isn't loaded?
Looks good to me.
~$ curl -I http://www.bcmtouring.com/forum/images/icons/icon6.png
HTTP/1.1 200 OK
Date: Fri, 08 Jun 2012 23:53:38 GMT
Keep-Alive: timeout=5, max=100
Last-Modified: Sat, 02 Jun 2012 00:14:14 GMT
Expires: Fri, 15 Jun 2012 23:53:38 GMT
Yes it just started working, after I individually listed image mime types in litespeed.
|All times are GMT -7. The time now is 05:48 PM.|