Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How can I test a cache rule? - Cloudflare Developers
CD
Cloudflare Developers
โข
3y ago
โข
8 replies
quisi.do
How can I test a cache rule?
I have a cache rule that all URIs that start with
/static/
/static/
and have a 2xx response code should have a 1 year cache
. However
, despite purging my cache
, I am receiving a
Cache-Control: max-age=600
Cache-Control: max-age=600
header instead of the expected 1 year
.
I
'm unsure if it
's as simple as the URI path match being inaccurate
, but I have no way of testing that the expected paths match
.
The origin is hosted on GitHub Pages
, where
max-age=600
max-age=600
is the origin
's
Cache-Control
Cache-Control
header
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Cache Rule Not Working
CD
Cloudflare Developers / general-help
3y ago
Cache sveltekit site with cloudflare cache rule
CD
Cloudflare Developers / general-help
16mo ago
How can I disable a security rule for a web asset?
CD
Cloudflare Developers / general-help
2mo ago
Nginx Cache Trouble with Full Cache Everything page rule
CD
Cloudflare Developers / general-help
15mo ago