Cloudflare cache invalidation on App Platform

Are cache tags supported (and their invalidation) with App Platform and the Cloudflare CDN? I’d like to make sure my requests have proper Cache-Tag headers. The problem is that invalidation with Cloudflare is an API based process.

If the Cache-Tags header isn’t available, what is a good way to handle cached responses on App Platform without setting a low Cache-Control header.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

👋🏼 @nmd.matt

App Platform doesn’t support Cache-Tag headers at this time, however, you can make use of Cache-Control headers per Cloudflare’s guidelines:

For Static Site components, we set a Cache-Control header automatically and explicitly purge the CDN cache on each app deployment. I hope that helps!

Is there a way to increase max-age? 10 seconds for hashed JS file names seems way too low. Perhaps for .html extensions it makes sense but for CSS/JS etc. it would make sense to have a higher number if the asset names are hashed.