Purge everything works, but cannot purge single url

What is the name of the domain?

What is the issue you’re encountering

Cannot purge single url, my style.css It does nothing but PURGE ALL works fine

What steps have you taken to resolve the issue?

I’ve tried adding “https://animatorartistlife.com/wp-content/themes/bb-theme-child/style.css” to a new bypass cache rule, and Ive tried clicking custome purge and adding th url to the box… it does nothing! … but purge ALL works.

Could you share a screenshot of your Cache Rule for bypass? :thinking:

Related to the Cache Rules, is this Cache Rule for bypass the first from above on the list?

Should be like:

Just in case, I’d set no caching for this particular CSS resource, which by default is cached at Cloudflare, using Transform Rules → Modify Response Header as follows:

Cache-Control    max-age=0, no-cache, no-store, must-revalidate
Expires          Wed, 12 Jan 1980 05:00:00 GMT
Pragma           no-cache

May I ask what is set to your Browser Cache TTL? :thinking:

Are you using any Page Rules? :thinking:

Seems like your origin host/server is sending the caching HTTP headers for this resource then:

cache-control: public, max-age=31536000,public
expires: Fri, 14 Nov 2025 13:25:59 GMT
x-turbo-charged-by: LiteSpeed

You might have to purge and clear the cache at the origin host, and after that on Cloudflare to get new modifications applied :thinking:

@fritex thanks so much!
I had my rule as operator = wildcard
and the value to the full url: https://animatorartistlife.com/wp-content/themes/bb-theme-child/style.css
(because in the helper text underneath - it says use the full url)

I changed it to your settings and this seems to work now thanks! :blush:

ps Browser Cache TTL is set to 4 hours
Ill look into the Modify Response Header option, I’m quite new to cloudflare so a bit worried about breaking something by changing settings on things I dont understand yet

Can I ask why doing a custom purge then entering the full url as above does not work?
Thanks again

1 Like

Thank you for feedback.

I am happy to assist you :hugs:

After you’ve purged single URL, may I ask if you’ve openned the same URL in your Web browser, refreshed, or took a look at “view source code”? :thinking:

It might be your Web browser needed “hard refresh” to get newly generated CSS resource and to download it over again.

Best case is to cross-check openning the URL in a different Web browser or in the Incognito mode (Private Window).

As far as I don’t see some recent incident about Cache or API at the official Cloudflare Status page, I cannot reproduce the same on my end, I am not quite sure what is “in between” your origin cache, Cloudflare cache and your Web browser cache.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.