[Resolved] Gzip

Status
Not open for further replies.

pardis

Well-Known Member
#1
Hello :

some customer reported Gzip not working fine.
Please see screen attach :




Litespeed setting :
Code:
text/*, application/x-javascript, application/xml, application/javascript, text/javascript
 
Last edited by a moderator:

NiteWave

Administrator
#2
the setting is correct. however it can be overridden by rewrite rules in .htaccess
what's the lsws version ? need more info to identify the root cause.
 
#11
4.2.14: Added support for Apache mod_env and mod_setenvif.
you can
Code:
grep -e -i (setenv|browsermatch
in .htaccess files, /usr/local/apache/conf/httpd.conf, probably those directives have caused the issue. before 4.2.12(inclusive), those directives are ignored.
 
Last edited by a moderator:
#12
Hello

by my side, I still have this issue...
I'm with 4.2.14, and double checked if there's no problems with some env or setenv as you state above.

And I test with and without .htaccess to be sure to let LSWS do the job by is own, but no results.
The weird thing is that sometimes this is only the *.js that are not gziped and sometimes both *.js and *.css

But the config is like this:
Code:
text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml, image/vnd.microsoft.icon, application/octet-stream
I didn't had this issue I think before the 4.2.12 but unfortunately I only still have the 4.2.14 and 4.2.12 version in my WHM so I can't test before 4.2.11

EDIT: Same as pardis: When I switch back to LS 4.2.12 , Problem resolved
so obviously there's an issue in the behaviour of the 4.2.14 with the mod_env and mod_setenv tag detection i suppose, that brake the gzip mime detection (?)

EDIT2: Just tested with 4.2.13 and same issue than with 4.2.14 for gzip

any advice please ?
Thanks in advance
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#14
Please try force reinstall 4.2.14, it maybe fixed already.
There was an issue with certain setup have unnecessary intelligent gzip configuration using BrowserMatch directives. like
Code:
BrowserMatch   blabla   no-gzip
BrowserMatch   blablabla  !no-gzip
It is to turning off gzip selectively for certain browser matching certain signatures.
The earlier build of 4.2.14 does not handler "!no-gzip" well. it has been fixed.
 
Last edited by a moderator:
#15
nop sorry
didn't fix it, and i must say too same issue with v 4.2.13 so this is not especially related to support for Apache mod_env and mod_setenvif (as it were told sooner in this topic)

Not ready now for PM but I'm back later
 

mistwang

LiteSpeed Staff
#16
Just grep "BrowserMatch" in Apache httpd.conf and .htaccess. comment them out see if it is fixed or not.
If yes, send us the configuration for investigation.
 

pardis

Well-Known Member
#17
Just grep "BrowserMatch" in Apache httpd.conf and .htaccess. comment them out see if it is fixed or not.
If yes, send us the configuration for investigation.
Hi :
Problem still exist for all website ...

Code:
root@server6 [~]# cat /usr/local/apache/conf/httpd.conf | grep BrowserMatch
root@server6 [~]#
 
Status
Not open for further replies.
Top