Mod expires not working

#1
I have an issue where mod expires is not working for any of my websites.

I have it enabled it globally in HTPPD.conf

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A0
FileETag None
<FilesMatch "\.(gif|jpg|jpeg|png|js|css|ico|JPG)$">
ExpiresDefault "access plus 10 days"
Header append Cache-Control "public"
</FilesMatch>
</IfModule>

As well as in Litespeed configuration

Enable Expires Yes

Expires Default Not Set

Expires By Type image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800

Using PHP suEXEC and Litespeed dedicatedly with Load Apache Configuration set to Yes.
 
#3
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/
 

webizen

Well-Known Member
#4
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.
 
#5
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.
 

webizen

Well-Known Member
#6
unable to reproduce your issue in our lab. try comment out the mod_expires section in httpd.conf and see any difference.
 

webizen

Well-Known Member
#8
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
Server: LiteSpeed
Accept-Ranges: bytes
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
ETag: "324-4fc95ad6-0"
Last-Modified: Sat, 02 Jun 2012 00:14:14 GMT
Content-Type: image/png
Content-Length: 804
Cache-Control: max-age=604800
Expires: Fri, 15 Jun 2012 23:53:38 GMT
 
Top