Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP Rocket is not clearing RocketCDN files #7160

Open
WordPresseur opened this issue Dec 2, 2024 · 3 comments
Open

WP Rocket is not clearing RocketCDN files #7160

WordPresseur opened this issue Dec 2, 2024 · 3 comments

Comments

@WordPresseur
Copy link
Contributor

WordPresseur commented Dec 2, 2024

Describe the bug
WP Rocket is not clearing RocketCDN files when needed or when clicking on "Clear RocketCDN files" button.

Expected behavior
WP Rocket should clear RocketCDN files when needed or when clicking on "Clear RocketCDN files" button.

Additional context
Slack threads:

HS ticket: https://secure.helpscout.net/conversation/2775282077/526512

@ciorici
Copy link

ciorici commented Dec 19, 2024

Hello!

Sorry for bumping here, but I have the same problem.

I also sent a support request, but will duplicate it here too:

I noticed that when opening my website in an incognito tab the page source is different on the first load compared to the source after a page refresh.

How to replicate the issue:

  1. Go to this page and look for URLs of assets in the source:
    https://www.wpzoom.com/plugins/wpzoom-forms/

You'll noticed that they load from RocketCDN:
<script type="rocketlazyloadscript" defer data-rocket-type="text/javascript" data-rocket-src="https://b8f4g5a7.delivery.rocketcdn.me/wp-content/themes/wpzoom/js/app.min.js?ver=5.0.90"></script>

  1. If you do a page refresh and check again the source, you'll see that CDN disappears and links to assets look like this:

<script defer type="text/javascript" src="https://www.wpzoom.com/wp-content/themes/wpzoom/js/app.min.js?ver=5.0.90"></script>


My question is, is this a WP Rocket option? If so, which one?

This creates problems because the CDN assets are cached and even after clearing everything, including rocketcdn cache files, some JS are still not refreshed and are outdated.

Is there a way to force clearing all assets?

I changed the version of my theme, cleared everything to no avail.

For example, these two JS files should be the same, but they are not:

https://b8f4g5a7.delivery.rocketcdn.me/wp-content/themes/wpzoom/js/app.min.js?ver=5.0.90
https://www.wpzoom.com/wp-content/themes/wpzoom/js/app.min.js?ver=5.0.90

I have some new JS code that contains "toggleContainer", but it's not appearing in the JS file from RocketCDN.

What's causing this?

Thank you

@incircolo
Copy link

incircolo commented Dec 19, 2024

I have the same problem and had to disable RocketCDN. Me too i'd like to know if there's a way to force clearing all assests.

@hubertushuber
Copy link

Got the same issue here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants