Hello All,
I installed litespeed as a drop in replacement for my Apache server and to evaluate it and I am running into a strange issue with Gzip compression. It appears that even though it is enabled, it does not properly honor all mime types.
My server's header by hitting the main page :
Content-Encoding: gzip
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.2
X-Pingback:
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Sun, 04 Jul 2010 19:11:04 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Date: Sun, 04 Jul 2010 19:11:04 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
200 OK
Based on the above header dump you can see Gzip is working, however once I try this on a .js or .css file it doesn't:
Date: Sun, 04 Jul 2010 19:11:02 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Etag: "7ee-4b733572-10061dfd"
Last-Modified: Wed, 10 Feb 2010 22:38:42 GMT
Content-Type: text/css
Content-Length: 2030
200 OK
Now interestingly enough I verified this exists as both a mimetype on the main server configuration and it has been added as an option in the compressible types.
My compressible type config is here:
text/*, application/x-javascript, application/javascript, application/xml, text/css, text/js
Does anyone have any ideas on this? This is a pretty big hurdle to my migration and any insight you could bring would be great.
I installed litespeed as a drop in replacement for my Apache server and to evaluate it and I am running into a strange issue with Gzip compression. It appears that even though it is enabled, it does not properly honor all mime types.
My server's header by hitting the main page :
Content-Encoding: gzip
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.2
X-Pingback:
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Sun, 04 Jul 2010 19:11:04 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Date: Sun, 04 Jul 2010 19:11:04 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
200 OK
Based on the above header dump you can see Gzip is working, however once I try this on a .js or .css file it doesn't:
Date: Sun, 04 Jul 2010 19:11:02 GMT
Server: LiteSpeed
Accept-Ranges: bytes
Etag: "7ee-4b733572-10061dfd"
Last-Modified: Wed, 10 Feb 2010 22:38:42 GMT
Content-Type: text/css
Content-Length: 2030
200 OK
Now interestingly enough I verified this exists as both a mimetype on the main server configuration and it has been added as an option in the compressible types.
My compressible type config is here:
text/*, application/x-javascript, application/javascript, application/xml, text/css, text/js
Does anyone have any ideas on this? This is a pretty big hurdle to my migration and any insight you could bring would be great.