WP Super Cache — Content Encoding Error Problem

I had recently installed WP Super Cache on my WordPress blog. Initially, the plugin works fine but after a few minutes the pages refuse to load and some really weird error messages appear.

Opera internet browser shows something like this:


While Mozilla Firefox gives an error message..

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.

If you change the URL to page 2 and go back to page 1 it loads just fine. And then if you clear your cache it stops working again.


So what to do??

Here is a checklist you might wanna look at before panicking.

  • Go to the advanced settings page and enable “PHP caching” and make sure compression is disabled.
  • When you get that error in your browser, look in your web server’s error.log file around that time. It might be PHP is timing out and tossing a badly formed page.
  • If your big pages takes a long time and db queries to generate, then break it up into manageable chunks.

If the problem still persists, I may have a solution.

You didn’t happen to have gzip compression turned on in WP-Super-Cache, did you?  That’s normally why that error spits back.

Since the host already ‘gzip compresses’ most of the things that go through Apache, asking Super Cache to do that for you again ends up giving out these weird encoding errors.

I hope you succeeded with your problem now. If you didn’t, be sure to tell me. We’ll try and fix it together!