When I click on the button responsible for calling the script, it says that the cache was purged, and I can see the API response in the log like the following:
However, I have a CSS file with new code, and when I look at the CSS file, I notice that the code didn’t change, which means that the cache is not being purged.
Is there anything else I need to do to purge the cache?
How can I confirm that it’s not a cloudflare cache issue?
So, at first request, I created the file, wrote things in it, and could see everything when accessing through the browser. Its a css file for fonts. After adding things for the second time around and refreshing the browser, I didnt see the changes.
1 - Via ssh I navigated to the file and could see my changes. From the browser, still nothing.
2 - I deleted the file from the server, but can still see it through the browser with the old fonts.
Sorry, I meant to say that those were the things I did before purging the cache.
I now also purged the cache through cloudflare dashboard and nothing. Note that I already deleted the file from the server, so, the correct behaviour would be to show nothing/404.
I dont think that this has anything to do with cloudflare now.
If I append a query string to the link I see the correct result.
So, in summary, I need to add query string to the file of which the value has to be the current timestamp. https://lab1.onlinecms.mtn.co.za/sites/default/files/vivid-fonts.css?timestamp=currenttimestamp
Using Query string is a workaround if you’re using Cloudflare’s Standard cache setting. But I do see you have server cache (Varnish?) as well as Cloudflare cache. Still, if you’ve purged everything at Cloudflare, it would still pull the old copy from the server if you haven’t purged that cache as well.