Created
September 18, 2012 12:57
-
-
Save encodes1/3742947 to your computer and use it in GitHub Desktop.
.htaccess performace / speed tweaks
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
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 | |
# Add far future headers | |
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|swf|css|js|png)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 year" | |
</FilesMatch> | |
FileETag MTime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment