javascript - gzip compression does not work for all files -


i configured htaccess file active gzip compression on website. config:

<ifmodule mod_deflate.c>   <ifmodule mod_setenvif.c>     <ifmodule mod_headers.c>       setenvifnocase ^(accept-encodxng|x-cept-encoding|x{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[x~-]{4,13}$ have_accept-encoding       requestheader append accept-encoding "gzip,deflate" env=have_accept-encoding     </ifmodule>   </ifmodule>    <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/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/xhtml+xml     filterprovider  compress  deflate resp=content-type $application/rss+xml     filterprovider  compress  deflate resp=content-type $application/atom+xml     filterprovider  compress  deflate resp=content-type $application/vnd.ms-fontobject     filterprovider  compress  deflate resp=content-type $image/svg+xml     filterprovider  compress  deflate resp=content-type $application/x-font-ttf     filterprovider  compress  deflate resp=content-type $font/opentype     filterchain     compress     filterprotocol  compress  deflate change=yes;byteranges=no   </ifmodule>    <ifmodule !mod_filter.c>     addoutputfilterbytype deflate text/html text/plain text/css application/json     addoutputfilterbytype deflate application/javascript     addoutputfilterbytype deflate text/xml application/xml text/x-component     addoutputfilterbytype deflate application/xhtml+xml application/rss+xml     addoutputfilterbytype deflate application/atom+xml     addoutputfilterbytype deflate image/svg+xml application/vnd.ms-fontobject     addoutputfilterbytype deflate application/x-font-ttf font/opentype   </ifmodule> </ifmodule> 

gzip compression works on files of website, except 1 of them. file not compressed json file js format (map.js) , size 3mb.

request headers:

accept:*/* accept-encoding:gzip, deflate, sdch accept-language:en-us,en;q=0.8,fa;q=0.6 alexatoolbar-alx_ns_ph:alexatoolbar/alxg-3.3 cache-control:no-cache connection:keep-alive cookie:phpsessid=lr9h0qmqcmaidakagt34385rn3 host:aqcc.chetoriha.com pragma:no-cache referer:http://aqcc.chetoriha.com/mapview.php user-agent:mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/41.0.2272.118 safari/537.36 

response headers:

http/1.1 200 ok date: tue, 14 apr 2015 15:19:57 gmt server: litespeed accept-ranges: bytes connection: keep-alive keep-alive: timeout=5, max=100 etag: "2ac47b-552d59e8-837e4d9f058b5c4c" last-modified: tue, 14 apr 2015 18:18:16 gmt content-type: application/javascript content-length: 2802811 cache-control: public cache-control: public, max-age=31536000 expires: wed, 13 apr 2016 15:19:57 gmt 

why files compressed map.js not compressed???


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -