WP Super Cache .htaccess section is empty, download.gz is served
-
I recently deactivated and then reactivated WP Super Cache. Now, whenever I access any page on my site by URL, it downloads a “download.gz” file instead of serving me the page.
I checked in my .htaccess file and for WP Super Cache it has the following:
# BEGIN WPSuperCache # END WPSuperCache
I’m pretty sure it used to have lots more stuff in it than that.
I have some code in my .htaccess file which does the gz compression (it’s been there for 2 years with no issue), and the compression option in WP Super Cache is disabled.
I’ve removed the code from my .htaccess and enabled compression in WP Super Cache. This has fixed it for all pages I’ve accessed except for the homepage, which still gives a download.gz. If I disable compression in WP Super Cache and delete the cache, I still get a download.gz for my homepage, which is odd because now there’s no compression active on the site either through .htaccess or WP Super Cache. If it’s in my browser cache, I can’t Ctrl-F5 to force a server refresh because accessing the URL downloads the file.
My Google Adwords have also been deactivated by Google because accessing my homepage URL downloads the file, which they class as “invalid link” and have deactivated my campaign.
I’ve deactivated then deleted WP Super Cache, then installed and activated again. I started the cache preload but nothing happened – it usually tells me what post count it’s currently caching. So I cancelled the preload, and it said it’s currently generating posts 100-200 so will take a few minutes to stop. 15 minutes later, if I refresh the page it says it’s still generating 100-200, but if I access the list of cached pages, it’s empty. Using a cron manager I’ve confirmed the preload hook is not running, does this mean the preload is not running? I’m unable to manually restart the preload because when I refersh the Preload page, the only option I have is “cancel preload” because it’s still doing posts 100-200.
I will need to do the gzip through my htaccess because I also serve json from my site and WP Super Cache doesn’t compress this.
Questions:
1. Why is my .htaccess empty for the WP Super Cache section?
2. Why is my homepage serving a download.gz file?
3. How do I restart the preload?
- The topic ‘WP Super Cache .htaccess section is empty, download.gz is served’ is closed to new replies.