/ Published in: Apache
long htaccess expired header for all files except for server side scripts
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ExpiresActive On ExpiresDefault A6048000 FileETag none Header unset Etag Header unset Last-Modified Header set Cache-Control "public" <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi|html?)$"> Header set Cache-Control "private, must-revalidate, proxy-revalidate" ExpiresDefault A0 ExpiresActive Off </FilesMatch>
URL: http://wiki.dennyhalim.com/htaccess