Compression problem
-
If I enable compression in Hyper Cache, .gz files are created in the cache as you’d expect and these cached files are served fine by my server, since I set it up to send .gz files instead of plain ones whenever they’re available.
However, if I load a page with caching disabled (e.g. with Ctrl-Shift-R in Chromium), I receive gibberish, since my webhost configured Apache to always send dynamically generated content with on-the-fly gzip compression by default, so it seems that if compression is enabled in Hyper Cache, dynamic content that WordPress sends is compressed twice, once by the plugin and once by the server.
This unfortunately leads to problems if you’re logged in as admin, since Hyper Cache prevents the server from serving cached files then. The admin only gets to see gibberish in that case, except on the admin pages themselves, since Hyper Cache seems to always force PHP to gzip-encode content when compression is enabled in the plugin’s settings.
Is there a way in Hyper Cache to create gzipped caches of files but to still not send on-the-fly gzipped pages when not loading from cache because the server already compresses dynamically generated HTML content? Mod_deflate and mod_gzip are unfortunately not available on my server.
For what it’s worth, my host is nearlyfreespeech.net.
- The topic ‘Compression problem’ is closed to new replies.