Last active
June 27, 2017 20:17
-
-
Save danmaby/583f8aea9530ff1e05429be8d9d5fca3 to your computer and use it in GitHub Desktop.
Site Optimisation All Sites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ENABLE GZIP COMPRESSION ## | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
## ENABLE GZIP COMPRESSION ## | |
# BEGIN Expire headers | |
<ifModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access 2 days" | |
ExpiresByType image/x-icon "access plus 604800 seconds" | |
ExpiresByType image/jpeg "access plus 604800 seconds" | |
ExpiresByType image/png "access plus 604800 seconds" | |
ExpiresByType image/gif "access plus 604800 seconds" | |
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds" | |
ExpiresByType text/css "access plus 604800 seconds" | |
ExpiresByType text/javascript "access plus 604800 seconds" | |
ExpiresByType application/javascript "access plus 604800 seconds" | |
ExpiresByType application/x-javascript "access plus 604800 seconds" | |
ExpiresByType image/svg+xml "access plus 604800 seconds" | |
ExpiresByType image/svg "access plus 604800 seconds" | |
#ExpiresByType text/html "access plus 600 seconds" | |
#ExpiresByType application/xhtml+xml "access plus 600 seconds" | |
</ifModule> | |
# END Expire headers | |
# Compress text, html, javascript, css, xml | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript application/x-httpd-php application/rss+xml application/atom_xml text/javascript | |
# ETags | |
FileETag none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment