[Resolved] Gzip

Status
Not open for further replies.
#21
Hi

sorry double checked all where I could have some SetEnvIf and BrowserMatch, cleaned all my .htaccess in every virtual domains and set too off all the sites optimisations from cPanel (the one who put the htaccess with BrowserMatch at the root of the domains)

Issue still the same:
Version <= 4.2.12 = OK

I will check again....just in case of my eyes..
 

mistwang

LiteSpeed Staff
#23
Also, you need to make sure to get latest 4.2.14 build with
Code:
/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.14
 
Last edited by a moderator:

xUx

New Member
#26
This post saved my life, reinstalling 4.2.14 fixed gzip, thanks!

Is there any way to use curl and get the "Content-Encoding: gzip" from a LiteSpeed page? I've tried a couple using -H "Accept-Encoding: gzip ,deflate" with no success, however the site is being gzipped. Could that be related to how php parses the output? If you call a txt/js/css file directly, you will see the content-encoding, but not directly from the php output. Any ideas?
 
#27
I tried, following curl works:
Code:
curl -o t1.html -i -H "Accept-Encoding: gzip ,deflate" http://blog.litespeedtech.com
curl -o t2.html -i --compress http://blog.litespeedtech.com
above t1.html/t2.html has "Content-Encoding: gzip" response header

while
Code:
curl -o t3.html -i http://blog.litespeedtech.com
t3.html has no "Content-Encoding: gzip" response header

however,
Code:
curl -I -H "Accept-Encoding: gzip ,deflate" http://blog.litespeedtech.com
has no "Content-Encoding: gzip" either.
so get headers only(curl -I) won't trigger gzip

not sure what's behavior under apache or nginx
 
Last edited by a moderator:
Status
Not open for further replies.
Top