Warm Caching Multiple Versions of a Page Based on Query String Params

I have a site that has a “Dynamic” page that I want to warm cache a collection of the page based off of the query string parameters.

The site shows locational information. I have a list of predefined locations that we are wanting to warm cache. So, when you pass and address like this, “mySite/searchLocation?locationId=blah”, for every blah location, I want to create a warm cache of it. Then if someone comes in to a blah location, I want it to serve up that already cached info for that location.

I have setup a page rule for caching the page, but if I’m not mistaken, this caching only becomes “live” after someone hits the page, and I want to build this cache ahead of time daily.

Outside of requesting it yourself, that isn’t an option unless you are an Enterprise customer.

https://support.cloudflare.com/hc/en-us/articles/206776707-Does-Cloudflare-Do-Prefetching-

I don’t think that covers HTML anyways but it’s Enterprise so that could very likely be negotiated.

It’s worth bearing in mind that cache exists on a per-colo basis - so distributed across ~350 colos globally - and your assets will be evicted if they’re not requested often enough.

Argo Tiered Caching can help by making the lower-tier colos talk to upper-tier colos to see if they have the cached content, but that’s about it. Introducing: Smarter Tiered Cache Topology Generation

1 Like

Thanks so much, that’s exactly what I was looking for.

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