- Title for your fault: WP Rocket Issue - Downloading file instead of loading website
- Step-by-step Description:
After enabling some settings and testing the website, still, no issues and everything works just fine.
Purging cache, purging OP cache, clearing Cloudflare cache, regenerating CSS files - everything works as it should.
- Fault Description:
Everything works fine if I go to /wp-admin/ and login but the same file keeps prompting for download when accessing any page of the website.
Tried with Safari, Chrome & Mozilla, both in Private Window and Regular Window. Tried with GTMetrix & Screenshot Guru.
Here's the wp-rocket-config file source code: https://pastebin.com/9eicmnRi
Here's the file that prompts for download (source code) - https://pastebin.com/jLEtpTiu
Here's what GTMetrix says: https://ibb.co/DKH4pG4
Here's what ScreenShot Guru says: https://ibb.co/XxY7NBD
In terms of specs, I'm on Cloudflare (Free) > Google Cloud Console VM (1vCPU/1.7GB RAM) > Ubuntu 18.04 > CyberPanel 2.0.0 > OpenLiteSpeed 1.6.14 > Wordpress 5.4.2
- What have you done to try to fix the issue:
I've tried deleting the /wp-content/cache directory, once WP Rocket recreates the cache, the issue returns.
I've tried enabling 1 option/day. Everything goes well until it doesn't. It works for a few hours than, the download prompts once again even after activating silly options like "Disable Emoji".
Finally, I've tried using LiteSpeed caching plugin but some of the settings break my layout which WP Rocket didn't (before I started having these issues). I can't remember when it all started but it's been a couple of months (since I haven't used any caching plugins as it makes no difference with most of my pages).
My other websites work well both with WP Rocket & LiteSpeed Cache, only this one's a pain in the *ss. I might add this website's DB is ~200MB and 4GB+ files. Not sure if it matters.
Update 1: I've checked permissions multiple times, it's not that. And I've also read this blog post but it does look really backdated, as I use PHP 7.4
Thank you for reading the whole post and I'm happy with any suggestions related to this topic.