Skip to content

Commit

Permalink
Use substring matching in gzip filter_module and re-enable gzip for s…
Browse files Browse the repository at this point in the history
…ome common MIME-types
  • Loading branch information
Robert Ros committed Jun 28, 2011
1 parent 6edd2cb commit 8658168
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .htaccess
Expand Up @@ -104,8 +104,6 @@ AddType application/x-xpinstall xpi
AddType application/octet-stream safariextz
AddType text/x-vcard vcf

AddType application/javascript js
AddType application/xml xml


# ----------------------------------------------------------------------
Expand Down Expand Up @@ -146,15 +144,18 @@ AddType application/xml xml
# HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
<IfModule filter_module>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-javascript
FilterChain COMPRESS
FilterProtocol COMPRESS change=yes;byteranges=no
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
</IfModule>

<IfModule !mod_filter.c>
Expand Down

0 comments on commit 8658168

Please sign in to comment.