Posted By

dennyhalim on 05/25/09


Tagged

header simple htaccess cache expire


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

dennyhalim
smart1
harrydeluxe
MicronXD


super over simplified cache control and expire header htaccess


 / Published in: Apache
 

URL: http://wiki.dennyhalim.com/htaccess

long htaccess expired header for all files except for server side scripts

  1. ExpiresActive On
  2. ExpiresDefault A6048000
  3. FileETag none
  4. Header unset Etag
  5. Header unset Last-Modified
  6. Header set Cache-Control "public"
  7.  
  8. <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi|html?)$">
  9. Header set Cache-Control "private, must-revalidate, proxy-revalidate"
  10. ExpiresDefault A0
  11. ExpiresActive Off
  12. </FilesMatch>

Report this snippet  

You need to login to post a comment.