Skip to content

Instantly share code, notes, and snippets.

@mwordpress
Created February 10, 2017 22:28
Show Gist options
  • Save mwordpress/7cef67aa89dff437725866658afc7a43 to your computer and use it in GitHub Desktop.
Save mwordpress/7cef67aa89dff437725866658afc7a43 to your computer and use it in GitHub Desktop.
# BEGIN supercache
<IfModule mod_mime.c>
<FilesMatch "\.html\.gz$">
ForceType text/html
FileETag None
</FilesMatch>
AddEncoding gzip .gz
AddType text/html .gz
</IfModule>
<IfModule mod_deflate.c>
SetEnvIfNoCase Request_URI \.gz$ no-gzip
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control "max-age=300, must-revalidate"
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A300
</IfModule>
# END supercache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment