Ignore Query string page rule?

Hi,

What page rule do I need to use for the following?

In my sites code the CSS is loaded with a different query string every page load, for example: css/style.css?v=20200913131600 . The content is the same every time. But due to the query string changing I always get a “cf-cache-status” as “miss”.

What page rule should I use to show the same content from the Cloudflare cache for all query strings instead of loading the content from my site every time?

Many thanks for your help

There is a caching mode that is “ignore query string”. That can be enabled via a Page Rule.

1 Like

Hi,

What page rule do I need to use for the following?

In my sites code the CSS is loaded with a different query string for every page load, for example: css/style.css?v=20200913131600 . The content is the same every time. But due to the query string changing I always get a “cf-cache-status” as “miss”.

What page rule should I use to show the same content from the Cloudflare cache for all query strings instead of loading the content from my site every time?

Many thanks for your help