• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

WP Rocket Issue - Downloading file instead of loading website

Ameni

Active member
Feb 20, 2020
35
105
33
  • 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:
I am also facing the same issue after updating cyber panel did you got fixed for this?
 
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
  • 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 ?
 
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.
 

Forum statistics

Threads
78,852
Messages
1,127,600
Members
246,534
Latest member
mastbabia
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock