Content encoding error with 304 browser caching
-
I’m running WP Super Cache in my development environment for testing. This is WP Super Cache version 1.4 on WordPress 3.7.1 in a Windows environment running Apache as localhost. I have WP_DEBUG turned on, and PHP set to display errors. I’m using PHP caching.
The problems I’m seeing appear to relate to the checkbox option, “304 Not Modified browser caching.” When the box is unchecked, everything works as expected. When the box is enabled, I get a PHP Notice-level warning stating that “If-Modified-Since” is an undefined index.
But then if I enable both “304 Not Modified” and also “Compress pages so they’re served more quickly to visitors” at the same time, I get a Content Encoding Error from the browser. Firefox says “…invalid or unsupported form of compression.” Chrome says “Error code: ERR_CONTENT_DECODING_FAILED”
My best guess is that the problems could be related. But it’s not an issue that I’ve experienced previously, and Donncha seems like a responsive developer, so I just wanted to bring this to your attention.
This occurred on my local testing environment, not a public web page; but I can post some screenshots if you think that would be helpful.
Thanks!
- The topic ‘Content encoding error with 304 browser caching’ is closed to new replies.