Double Gzip?

Discussion in 'Install/Configuration' started by rok, Jan 26, 2010.

  1. rok

    rok New Member

    I have drupal site with Boost module for gzip file css,js config in .htaccess.
    But when i enter site apear strange symbol...:
    �������=ks
    http_://174.120.219.172/
    I turn off gzip on webadmin LS but not soldve this pbl.Anyone help me?:(.I just want config gzip inside my drupal,not by server.
    Last edited: Jan 27, 2010
  2. rok

    rok New Member

    This .htaccess working good on apache...
  3. NiteWave

    NiteWave Administrator

    I studied this case, has some progress.

    access:
    http_://174.120.219.172/
    same output as said:
    �������=ks

    http_://174.120.219.172/?xxx
    can see some normal output but not all.

    checking .js and .css files, they are in gzip format, there's the cause why the page not display correctly.

    comparing with output of normal .js and .css file in firebug, there is a "Content-Encoding: gzip" in response headers.

    so you compress the .js and .css files yourself, but not give "Content-Encoding: gzip" header at the same time. so you may try to add this header for the compressed .css and .js files, see if resolve the issue.
  4. rok

    rok New Member

    Thanks...I've added some config of my .htaccess file...
    When remove this:
    Then site working good...But when add this,site not working...
  5. NiteWave

    NiteWave Administrator

    I did some tests, this may work for your special purpose: add
    Code:
    <FilesMatch "(\.html\.gz|\.json\.gz)$">
    Header set Content-Encoding "gzip"
    </FilesMatch>
  6. rok

    rok New Member

    And remove this?
  7. NiteWave

    NiteWave Administrator

    do not remove #GZIP part. just add.

    it's not difficult and no hurt to try with or without #GZIP rules. Please share the test result.

Share This Page