Yaroslav
Yaroslav
CDCloudflare Developers
Created by Yaroslav on 3/27/2025 in #pages-help
Cloudflare Pages Cache / and cache warm-up
The Essence of My Problem I have a website (built with Astro.js + WordPress) on a domain, and I’ve set up caching rules (Cache Everything). In the middleware function, I added the following logic to cache HTML pages, as they are not cached by default: newHeaders.set( "Cache-Control", "public, max-age=0, must-revalidate, s-maxage=31536000, stale-while-revalidate=86400" ); I don’t understand how I can warm up the cache (ideally for all visitors and globally across the world) so that each page is pre-warmed for every individual user.
14 replies