While browsing my Drupal 7 site time to time I am running into error:

Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem. 

- It's not always, but it may happen while browsing my site on some 20-30 pages 1-2 times; if I refresh it's usually is good again till next time.....

- it was happening as long the site is on real hosting (shared hosting) server....
- both without any aggregation / caching and with...

I am worried about this.....may be it wouldn't happen often, but it may happen as well....

Any suggestions?

I am browsing mostly with Firefox 19.02 .....the server is Litespeed ; php 5.4

p.s. as for other suggestions on the net I was trying to comment out
Header set Content-Encoding gzip in .htaccess , but I didn't get to see any results, because in this way all my CSS is messed up , if I use CSS aggreagation for CSS....

Comments

Jaypan’s picture

Lightspeed automatically gzips pages. If you are gzipping them within Drupal, it double gzips, which means the browser cannot decode it. Turn off any Drupal gzipping.