Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_expires.c>
- ExpiresActive On
- AddType application/vnd.ms-fontobject .eot
- AddType application/x-font-ttf .ttf
- AddType application/x-font-opentype .otf
- AddType application/x-font-woff .woff
- AddType application/x-font-woff2 .woff2
- AddType image/svg+xml .svg
- ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
- ExpiresByType application/x-font-ttf "access plus 1 year"
- ExpiresByType application/x-font-opentype "access plus 1 year"
- ExpiresByType application/x-font-woff "access plus 1 year"
- ExpiresByType application/x-font-woff2 "access plus 1 year"
- ExpiresByType image/svg+xml "access plus 1 year"
- ExpiresByType image/jpg "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType text/css "access plus 1 month"
- ExpiresByType application/pdf "access plus 1 month"
- ExpiresByType text/x-javascript "access plus 1 month"
- ExpiresByType application/x-shockwave-flash "access plus 1 month"
- ExpiresByType image/x-icon "access plus 1 year"
- ExpiresDefault "access plus 2 days"
- </IfModule>
- ## EXPIRES CACHING ##
- ##Caching for mod_headers##
- <IfModule mod_headers.c>
- Header set Connection keep-alive
- <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf|woff|woff2)$">
- Header set Cache-Control "max-age=2678400, public"
- </filesmatch>
- <filesmatch "\.(html|htm)$">
- Header set Cache-Control "max-age=7200, private, must-revalidate"
- </filesmatch>
- <filesmatch "\.(pdf)$">
- Header set Cache-Control "max-age=86400, public"
- </filesmatch>
- <filesmatch "\.(js)$">
- Header set Cache-Control "max-age=2678400, private"
- </filesmatch>
- </IfModule>
- ## EXPIRES CACHING ##
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement