Cache / page rules being ignored (cache-control etc)

I have a very simple cache rule to match our development subdomain (ex. dev.foo.com) to bypass cache/override origin not not cache anything, However, it seems this directive is totally being ignored. How can I debug this? here are some headers:
Alt-Svc:":443"; ma=86400
Cache-Control:max-age=2592000
Cf-Cache-Status:DYNAMIC
Cf-Ray:8101ea519f6654a3-YYZ
Content-Encoding:br
Content-Type:application/javascript

Date:Tue, 03 Oct 2023 02:57:01 GMT
Etag:W/"1e920-606c6a689010e-gzip"
Expires:Thu, 02 Nov 2023 02:57:01 GMT
Last-Modified:Tue, 03 Oct 2023 02:28:47 GMT
Nel:{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Alt-Svc:":443"; ma=86400
Cache-Control:max-age=2592000
Cf-Cache-Status:DYNAMIC
Cf-Ray:8101ea519f6654a3-YYZ
Content-Encoding:br
Content-Type:application/javascript

Date:Tue, 03 Oct 2023 02:57:01 GMT
Etag:W/"1e920-606c6a689010e-gzip"
Expires:Thu, 02 Nov 2023 02:57:01 GMT
Last-Modified:Tue, 03 Oct 2023 02:28:47 GMT
Nel:{"success_fraction":0,"report_to":"cf-nel","max_age":604800}
6 Replies
Chaika
Chaika•10mo ago
These days you can use trace, account level option, pop in your URL and it'll tell you if it hit any Cache Rules. But I would say though, that's about what I would expect from a cache rule just set to bypass, you have Cf-Cache-Status dynamic. if you're talking about the Cache-Control header, did you set an override for browser cache ttl? It's a separate option in cache rules below Cache Status.
Lorin
Lorin•10mo ago
No description
Lorin
Lorin•10mo ago
🤔
No description
Chaika
Chaika•10mo ago
Weird, looks like if the cache status is set to bypass it just ignores browser ttl. There's an easier way to do this then fighting with Cache Rules though, you can make a Transform Rule Modify Response Header (Rules -> Transform Rules -> Modify Response Header -> Create Rule) Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/rules/transform-rules/modify-response-header/new Example:
No description
Chaika
Chaika•10mo ago
Can set Cache-Control to whatever you like. Curious bug though, I was testing setting it to something higher and it just wasn't working, def shouldn't be happening. I'll mess around with it a bit more in the morning and see if it can't be fixed/escalated if it's reproducable
Lorin
Lorin•10mo ago
Trust me as far as bugs go you ain't seen nothing till you're tried to config an IIS server But thank you! I'll check out transforms tomorrow
Want results from more Discord servers?
Add your server
More Posts