Zack0322
CDCloudflare Developers
•Created by Non on 4/15/2025 in #general-help
Cloudflare keep to Revalidated my static files even my origin tell to keep a half-year
that's correct
12 replies
CDCloudflare Developers
•Created by Non on 4/15/2025 in #general-help
Cloudflare keep to Revalidated my static files even my origin tell to keep a half-year
you don't want to do that. you should update the rule that sets
300-599: no cache
to: 300-303: no cache
and 305-599: no-cache
this way the 304 status code will inherit the ttl of the 200 which you have as "forever"12 replies
CDCloudflare Developers
•Created by Non on 4/15/2025 in #general-help
Cloudflare keep to Revalidated my static files even my origin tell to keep a half-year
basically you need to update the TTL for your 300-599 range to exclude 304 otherwise once the asset is revalidated the first time, the ttl of the asset will become no-cache (i.e always revalidate) instead of whatever ttl you set for hte 200
12 replies
CDCloudflare Developers
•Created by Non on 4/15/2025 in #general-help
Cloudflare keep to Revalidated my static files even my origin tell to keep a half-year
12 replies