Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN supercache
- <IfModule mod_mime.c>
- <FilesMatch "\.html\.gz$">
- ForceType text/html
- FileETag None
- </FilesMatch>
- AddEncoding gzip .gz
- AddType text/html .gz
- </IfModule>
- <IfModule mod_deflate.c>
- SetEnvIfNoCase Request_URI \.gz$ no-gzip
- </IfModule>
- <IfModule mod_headers.c>
- Header set Vary "Accept-Encoding, Cookie"
- Header set Cache-Control 'max-age=86400, must-revalidate'
- </IfModule>
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType text/html A86400
- </IfModule>
- # END supercache
- # BEGIN Cache-Control Headers - added by me
- <ifmodule mod_headers.c>
- <filesmatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
- Header set Cache-Control "max-age=86400"
- </filesmatch>
- <filesmatch "\.(css|pdf)$">
- Header set Cache-Control "max-age=86400"
- </filesmatch>
- <filesmatch "\.(js)$">
- Header set Cache-Control "max-age=86400, private"
- </filesmatch>
- </ifmodule>
- # END Cache-Control Headers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement