[solved] Gzip

Discussion in 'General' started by pardis, Aug 11, 2014.

  1. pardis

    pardis Member

    Hello :

    some customer reported Gzip not working fine.
    Please see screen attach :
    [​IMG]

    [​IMG]

    Litespeed setting :

    text/*, application/x-javascript, application/xml, application/javascript, text/javascript
  2. NiteWave

    NiteWave Administrator

    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.
  3. mistwang

    mistwang LiteSpeed Staff

    find out the MIME type used for "css", list the MIME type explicitly in that setting.
  4. pardis

    pardis Member

    which code can overridden for example ?
  5. NiteWave

    NiteWave Administrator

    grep no-gzip in .htaccess files
  6. pardis

    pardis Member

    no , such this code not used
  7. NiteWave

    NiteWave Administrator

    I can log in your server to trace out the cause. you can PM the access info.
    root ssh and/or lsws web admin
  8. pardis

    pardis Member

    Sorry , i can't do it because some issue , Can Guide here on over PM ?
  9. NiteWave

    NiteWave Administrator

    either way is ok
  10. pardis

    pardis Member

    When I switch back to LS 4.2.12 , Problem resolved !
  11. NiteWave

    NiteWave Administrator

    4.2.14: Added support for Apache mod_env and mod_setenvif.
    you can "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.
  12. webmastergreg

    webmastergreg New Member

    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:
    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: Aug 20, 2014
  13. NiteWave

    NiteWave Administrator

    I can log into your server to trouble shoot this issue if you provide the access through PM (or a conversation)
  14. mistwang

    mistwang LiteSpeed Staff

    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

    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.
  15. webmastergreg

    webmastergreg New Member

    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
  16. mistwang

    mistwang LiteSpeed Staff

    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.
  17. pardis

    pardis Member

    Hi :
    Problem still exist for all website ...

    Code:
    root@server6 [~]# cat /usr/local/apache/conf/httpd.conf | grep BrowserMatch
    root@server6 [~]#
  18. mistwang

    mistwang LiteSpeed Staff

    It could be in the .htaccess.
    Make sure you have got the latest 4.2.14 build with force update.
  19. pardis

    pardis Member

    .htaccess checked , nothing there .
  20. mistwang

    mistwang LiteSpeed Staff

    you need to check both SetEnvIf and BrowserMatch, BrowserMatch is just a special case. They can do the same thing.

Share This Page