Double Gzip?

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

  1. rok

    rok Member

    I have drupal site with Boost module for gzip file css,js config in .htaccess.
    But when i enter site apear strange symbol...:
    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 Member

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

    NiteWave Administrator

    I studied this case, has some progress.

    same output as said:

    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 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
    <FilesMatch "(\.html\.gz|\.json\.gz)$">
    Header set Content-Encoding "gzip"
  6. rok

    rok 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