Bypassing cache for three javascript files

I found a few similar posts for this, but still wasn’t sure if I had it right. Can someone please take a look and let me know? I’ve attached a screenshot of how I have the draft set up.

I’m trying to bypass caching for three javascript files.

Thanks! Jerry

Hi,

The rule in your screenshot should work, as long as you don’t have any other settings contrary to it.

To test it, enable the rule, purge the Cloudflare cache for these 3 paths, then visit your website with Dev Tools open (F12 on Windows/Chrome) in the Network tab and check the cf-cache-status: header. It should say DYNAMIC or BYPASS.

1 Like

Out of curiosity, why do you want to bypass cache for those? They look to include version numbers, so they should never change.

2 Likes

PDFEmbedder recommends it here: https://wp-pdf.com/kb/using-caching-or-minifying-plugins/ so I was just going with their suggestion. Honestly I don’t have enough knowledge about caching and am just learning :slight_smile:

Thank you!

1 Like

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