Created
January 9, 2018 10:18
-
-
Save l4ci/76976fc5cdaa34201b03b84f89c115da to your computer and use it in GitHub Desktop.
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
## Browser Caching + Deflate Compression | |
<IfModule mod_deflate.c> | |
<FilesMatch "\.(js|jpg|jpeg|gif|png|ico|svg|css)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
</IfModule> | |
# Deflate Compression | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/atom_xml | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment