Cache-control is not set for assets in cloudflare pages

It appears that by default Cloudflare pages does not set the cache-control header to cache assets to the browsers disk. Instead it receives a 304 not modified from the edge.

How can I enable this for assets like JavaScript/CSS?

Setting it to a custom domain fixed the issue.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.