• Resolved bobsled

    (@bobsled)


    The plugin works super well, and I couldn’t be happier. It has really helped me in getting green scores for my mobile core web vitals.

    But there is just one little issue I can’t resolve.

    When I change a featured image on a post and purge the page, all is fine except for the images on archive pages such as author or latest post archives.

    When I check the archive pages, the images don’t update and also always have a MISS.

    I have tried custom purge on Cloudflare to update the individual archive pages, but with no success.

    The only way I have found to resolve it is to do a full site purge.

    Is there any way possible around this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    please check the cache-control header value of the images. Also when you update an post, if you have selected (inside the plugin settings) to also purge the related pages then the plugin will automatically purge the archive pages where the post shows up.
    The purging takes a few min to be completed.

    I personally have not faced this issue ever so maybe something else is causing this. Really hard to say without seeing it.

    Thread Starter bobsled

    (@bobsled)

    I’ve checked as best I can.

    This is the page where the problem occurs: https://justpublishingadvice.com/self-publishing-advice/page/8/

    The HTML page is fine.

    server: cloudflare
    vary: Accept-Encoding
    x-wp-cf-fallback-cache: 1
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60

    But the problem image has this:

    server: cloudflare
    strict-transport-security: max-age=16000000
    vary: Accept-Encoding
    x-wp-cf-super-cache: no-cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled

    But oddly, all images on the page, and in the posts when I check have this:
    server: cloudflare
    vary: Accept-Encoding
    x-powered-by: W3 Total Cache/2.1.5

    I have Total Cache disabled. But I’m wondering if there might still be a residual conflict with it.

    Plugin Contributor iSaumya

    (@isaumya)

    I have Total Cache disabled. But I’m wondering if there might still be a residual conflict with it.

    – There can be. Best to delete the plugins you are not using and make sure all of it’s residuals (especially the advanced-cache.php file among others) are deleted properly before adding another caching plugin.

    While checking the archive page URL you have provided above, I see everything is working perfectly fine. The HTML request has proper cache control as set by the plugin and the page is being served from Cloudflare: https://i.imgur.com/7Ygvw9u.png

    Even the images have perfect cache control and they are being served from Cloudflare cache as well: https://i.imgur.com/dSCmcYR.png

    But for images I do see that the x-powered-by: W3 Total Cache/2.1.5 is there in the response header, so maybe the resedual files from w3 total cache is causing the problems you are seeing?

    Thread Starter bobsled

    (@bobsled)

    Okay, thanks for your help.

    I’ll investigate removing W3 Total Cache correctly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cache not updating images on archive pages’ is closed to new replies.