EDIT I found that the problem is actually php minify . This sent deflated content instead of Apache. I will find more about it.
According to High Performance Websites , if I enable mod_deflate in Apache 2.x by adding the following line, it should send gzipped / delfated content: -
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript
The book also says gzip more efficient than deflate .
I included in httpd.conf by adding the same line. But Apache does send Content-Encoding: deflate .
I tested CURL using: -
curl -i -H "Accept-Encoding: gzip" "http://192.168.1.33/s.js" >> e:\curl_log.txt
It returns the contents of "gzipped". But when I send the command: -
curl -i -H "Accept-Encoding: gzip, deflate" "http://192.168.1.33/s.js" >> e:\curl_log.txt
It returns "sleeping" content.
So, if the browser supports both sleep and gzipped, Apache send deflated. How to tell Apache that he prefers gzip for deflation?
FYI: -
apache deflate mod-deflate
Sabya
source share