Skip to content

Instantly share code, notes, and snippets.

@l4ci
Created January 9, 2018 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l4ci/76976fc5cdaa34201b03b84f89c115da to your computer and use it in GitHub Desktop.
Save l4ci/76976fc5cdaa34201b03b84f89c115da to your computer and use it in GitHub Desktop.
## 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