WP Rocket Issue - Downloading file instead of loading website

Ameni

Member
Feb 20, 2020
31
70
13
  • Title for your fault: WP Rocket Issue - Downloading file instead of loading website

  • Step-by-step Description:
I have no issues installing and configuring WP Rocket - everything works just fine.

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:
Then, after a couple of hours (if I'm not logged in), if I try to visit the website, instead of loading the website as normal, I get prompted to download a file (named "www.mydomainname.com").

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 reconfiguring the WP Rocket, but even with all FIle Optimization - Off, there's still this 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.

Cheers
 
Last edited:

semiauto

Member
Jan 15, 2019
60
12
8
I am also facing the same issue after updating cyber panel did you got fixed for this?
 

Ameni

Member
Feb 20, 2020
31
70
13
TBH I've moved on and used LiteSpeed Cache (LS Cache) plugin. From my tests, I've noticed that there's nothing LS Cache can't handle that WP Rocket can. In fact, LS Cache has Image Optimization and a few extra options which WP Rocket doesn't have.
 
  • Like
Reactions: wp assign

videva

Member
Aug 25, 2020
75
53
18
  • Title for your fault: WP Rocket Issue - Downloading file instead of loading website

  • Step-by-step Description:
I have no issues installing and configuring WP Rocket - everything works just fine.

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:
Then, after a couple of hours (if I'm not logged in), if I try to visit the website, instead of loading the website as normal, I get prompted to download a file (named "www.mydomainname.com").

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 reconfiguring the WP Rocket, but even with all FIle Optimization - Off, there's still this 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.

Cheers
are you using .htaccess ?
can you provide .htacces or rewrite rule from your server ?
 
Jul 24, 2019
48
20
8
wp-rocket by itself is good for dynamic content (mostly because it doesn't break object caching with varnish/redis) - but poorly optimized for static content.
it is very taxing on php and leads to unnecessary cpu load.

using rocket-nginx partly solves this, as statics are served from nginx, bypassing php altogether.
combined with properly configured object caching, this will greatly reduce CPU and allow for much higher throughput / load.

I like LiteSpeed but it doesn't play well with an ecommerce setup out-of-the-box . well, that's because lots of plugins are poorly written, but what can you do? play sysadmin god for your clients every damn sunday? no thanks. LiteSpeed is best for static sites with no membership or woocommerce.

TBH I've moved on and used LiteSpeed Cache (LS Cache) plugin. From my tests, I've noticed that there's nothing LS Cache can't handle that WP Rocket can. In fact, LS Cache has Image Optimization and a few extra options which WP Rocket doesn't have.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu