Thread: Double Gzip?
View Single Post
  #6  
Old 01-28-2010, 07:38 AM
rok rok is offline
New Member
 
Join Date: Jan 2010
Posts: 5
Quote:
Originally Posted by NiteWave View Post
I did some tests, this may work for your special purpose: add
Code:
<FilesMatch "(\.html\.gz|\.json\.gz)$">
Header set Content-Encoding "gzip"
</FilesMatch>
And remove this?
Quote:
# GZIP
RewriteCond &#37;{HTTP_COOKIE} !(boost-gzip)
RewriteCond %{HTTP:Accept-encoding} !gzip
RewriteRule .* - [S=2]
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html \.gz -s
RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html \.gz [L,T=text/html]
RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json \.gz -s
RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json \.gz [L,T=text/javascript]
Reply With Quote