Created
March 30, 2012 17:16
-
-
Save silasb/2253052 to your computer and use it in GitHub Desktop.
GZip JS/CSS
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
AddEncoding gzip gz | |
RewriteEngine On | |
RewriteCond %{HTTP:Accept-Encoding} gzip | |
RewriteCond %{REQUEST_FILENAME}.gz -f | |
RewriteRule ^(.*)$ $1.gz [QSA,L] | |
<Files *.css.gz> | |
ForceType text/css | |
</Files> | |
<Files *.js.gz> | |
ForceType text/javascript | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment