Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # turns cache on for 1 month
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType text/css "access plus 1 month"
- ExpiresByType text/javascript "access plus 1 month"
- ExpiresByType text/html "access plus 1 month"
- ExpiresByType application/javascript "access plus 1 month"
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType image/x-icon "access plus 1 month"
- </IfModule>
- <ifmodule mod_headers.c>
- <filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
- Header set Cache-Control "max-age=2592000, public"
- </filesmatch>
- <filesmatch "\\.(css)$">
- Header set Cache-Control "max-age=604800, public"
- </filesmatch>
- <filesmatch "\\.(js)$">
- Header set Cache-Control "max-age=216000, private"
- </filesmatch>
- </ifmodule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement