Page caching delivers gzip file sporadically
-
I have had this problem affect all of my sites at one point or another but it happens sporadically. What happens is a gzip version of the site is loaded. In Firefox this just shows up as gibberish. In Chrome you’re prompted to download a gz file. The culprit is page caching. When I disable it and re-enable it the problem goes away. But it invariably comes back, often to the same site, and I have to turn it off and on again. This of course does not make clients happy as there is often a lag between when I or they notice and when I can get to a computer to turn the cache off and on. I did a diff between the .htaccess file when the problem was occurring and the .htaccess file after I enabled and re-enabled page caching. The following two lines were different within the the page caching section (broken version first)
– RewriteCond %{HTTP_HOST} =moderndayscribe.com`
+ RewriteCond %{HTTP_HOST} =moderndayscribe.com– RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
+ RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.5) [NC]As you can see, the broken version has a ` (backtick) character after the URL in the first section. In the second section the last number has changed from 5 to 4. I want to stress that in ALL these cases I don’t touch anything. The problem happens entirely on its own.
Please help!
- The topic ‘Page caching delivers gzip file sporadically’ is closed to new replies.