Answer the question
In order to leave comments, you need to log in
Why doesn't gzip compression and caching work on apache?
I welcome everyone.
Please help me figure out why gzip compression and caching on vps does not work.
Here is what is available and what I have already done:
/etc/httpd/conf.d$ httpd -v
Server version: Apache/2.2.29 (Unix)
Server built: Sep 19 2014 10:30:37
/etc/httpd/conf.d$ apachectl -t -D DUMP_MODULES |grep deflate
Syntax OK
deflate_module (shared)
LoadModule deflate_module modules/mod_deflate.so
LoadModule mem_cache_module modules/mod_mem_cache.so
...
Include conf.d/*.conf
...
<filesMatch "\.(js|html|css)$">
SetOutputFilter DEFLATE
</filesMatch>
<filesMatch "\.(js|html|css)$">
SetOutputFilter DEFLATE
</filesMatch>
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question