Question about apache and mod_expires

Victor Villa vvilla at
Mon Aug 29 18:18:33 MDT 2011

I've enabled mod_expires, and according to the tutorial, it seems to check
out.  I get an expiration date on all my files like i'd hope. The problem is
that when I navigate to a page, and it loads images, it doesn't seem to pull
from cache, it seems to be querying the server regardless.

System Specs:
Centos 5.5
Apache 2.2.3

navigate to webpage which has images.  change one of the images that is on
the web page.  reload the page (either by closing the browser and going to
the URL directly, or pressing the refresh button), new image loads.
 shouldn't the old image load??

tuts i referenced:

DocumentRoot /var/www/html
ServerAdmin webmaster at

<IfModule mod_expires.c>
          ExpiresActive on

          ExpiresDefault "access plus 1 day"

          ExpiresByType image/jpg  "access plus 1 day"
          ExpiresByType image/png  "access plus 1 day"
          ExpiresByType image/gif  "access plus 1 day"
          ExpiresByType image/jpeg  "access plus 1 day"

          ExpiresByType text/css "access plus 1 week"

          ExpiresByType image/x-icon "access plus 1 month"

          ExpiresByType text/javascript "access plus 1 week"
          ExpiresByType application/x-javascript "access plus 1 week"
          ExpiresByType application/javascript "access plus 1 week"


More information about the PLUG mailing list