Remember modimagesnever_expire?

Well Today I wrote modneverexpire . Its pretty much the same idea, but its a little more configurable, and for files it sets long expire and cache-control headers.... And it works in httpd 2.x

To use, you just use any Directory/Location/Files container, and tur it on:

  <LocationMatch ^/c/css/r\d+/.+\.css>
    NeverExpire on
  </LocationMatch>

or:

  <Directory "/foo/bar/js/">
    NeverExpire on
  </Directory>

Great for Images, CSS, and Javascript, as long as you properly version your URLs.




Share