• Resolved techsupp006

    (@techsupp006)


    Hi and good health!
    I’ve been using the Performance acceleration for both images and static files in combination with the Autoptimize plugin and the WP Super Cache plugin. I think this has caused some issues: Yesterday I changed some stuff like the main site’s logo and add some content to all pages and for reason the site still shows the old website from places around the world. If you do a force refresh in the browser then it shows you the new site.
    Is there a time period until the CDN refreshes the static files?
    Since then I disabled the option of using Jetpack acceleration but when checking the site from places around the world it *still* shows the old site and images.
    Should I just wait for the CDN to refresh or is there something that needs to be done?
    Thank you and good health to all.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Looks like everything is cached forever on their servers, with no option to flush it.

    There’s an issue opened 6 years ago, still nothing: https://github.com/Automattic/jetpack/issues/917

    you have two options:

    1. rename the file to something else. The old file will continue to be stored forever in their servers (which doesn’t make sense from an economic point of view, server space is expensive), so the only way is to rename it to something else. For example logo.jpg become logo2.jpg.

    or

    2. stop using performance acceleration

    Thread Starter techsupp006

    (@techsupp006)

    Thanks for the reply. I did that last night but still there’s a weird situation:
    The first time the site loads it looks like the old un-updated site. Once you hit refresh it loads the new updated site. I never encountered such behavior. If the CDN knows the files are not the same that’s weird.
    For instance Facebook still scrapes the old un-updated page no matter what I do.

    And I can’t change the main page of the site – the home page is the blog’s page… I looked around for hours and have no idea how to make a new main blog page on wordpress.

    • This reply was modified 4 years, 7 months ago by techsupp006.
    Thread Starter techsupp006

    (@techsupp006)

    At this point I just want to disable it completely. I switched the performance off in the jetpack settings but I’m still seeing images and files served from the CDN (i2.wp.com…)

    Plugin Support supernovia

    (@supernovia)

    Hi,

    The first time the site loads it looks like the old un-updated site. Once you hit refresh it loads the new updated site.

    If you are seeing two fully different versions of the site and not just the images and what not, our CDN might not be the issue. Can you send before/after screenshots so we know which one is the correct version?

    Thread Starter techsupp006

    (@techsupp006)

    Thank you,

    This is a screenshot of the old website that loads first:
    https://www.dropbox.com/s/perqxyd2t4ese2o/old_website-loads_first.jpg?dl=0

    and this is the new one that loads after refresh:
    https://www.dropbox.com/s/477adz39rqgotg2/new_website_after_refresh.jpg?dl=0

    You can see the new top logo and a new disclaimer (I marked them with arrows) among the changes.

    Thank you again.

    Plugin Support supernovia

    (@supernovia)

    Ah my mind had tuned out the banner / didn’t realize that was part of the design.

    And if I view in an incognito window I can see the first load shows the old image, stored on Jetpack. The refresh shows a second image stored locally.

    Would you mind temporarily turning off any caching plugins to see if that changes things?

    Thread Starter techsupp006

    (@techsupp006)

    I turned off both Autoptimize and WP Super Cache and this is now what’s loading:

    https://www.dropbox.com/s/c1w8gyyg08j3prm/disabled_cache_plugins.jpg?dl=0

    and after refresh this:

    https://www.dropbox.com/s/477adz39rqgotg2/new_website_after_refresh.jpg?dl=0

    Thank you. I’ll think I’ll turn them back on for now.

    Thread Starter techsupp006

    (@techsupp006)

    I didn’t turn them back on – All caching plugins are now disabled but the problem persists… I just manually returned a few missing css/js files that the old home page is looking for. So the behavior now is still like when I opened this issue — First the old home page load and then after refresh the new one.
    Thanks a lot for helping me with this — I’m at a loss.

    Thread Starter techsupp006

    (@techsupp006)

    Something I found out – I turned WordPress Endurance cache level to zero:
    https://www.dropbox.com/s/3gwifkzey1ojfvr/endurance_cache_level_01.png?dl=0

    And this now looks to fix the problem – the first page that loads is the new page! But it takes forever to load. I guess that means that the issue is not with the Jetpack CDN…
    Are you familiar with such an issue?

    Thread Starter techsupp006

    (@techsupp006)

    OK dear supernovia, the problem was with Hostgator’s caching system using the Endurance cache plugin. When I disabled it everything is fine again and I can use all other caching plugins (including your CDN) fine… at least I think.
    Thank you very much again for your assistance – I would never have found out the issue without you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to refresh CDN cache of static files’ is closed to new replies.