Skip to content

Instantly share code, notes, and snippets.

@danmilleruk
Created February 19, 2016 09:32
Show Gist options
  • Save danmilleruk/5d1fd2e2387d6803710d to your computer and use it in GitHub Desktop.
Save danmilleruk/5d1fd2e2387d6803710d to your computer and use it in GitHub Desktop.
# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
# DEFLATE by extension
AddOutputFilter DEFLATE js css htm html xml
</IfModule>
</IfModule>
# END W3TC Browser Cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment