How to cache for 1 month but validate cache every 1 hour

Hi There,

I am using workers,

I would like to cache the entire HTML for 1 month but to validate it every 1 hour,

From my understanding validate can take much less resources than actually refresh the entire cache,

Any idea how to do so?

Best,
Dan

:wave: @dan19

If your origin supports strong etags just set your TTL to 1 hour, Cloudflare will check expired content against the strong ETAG and only request new content from the origin if it is changed.

-OG

1 Like