© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•11mo ago
Martin Stastny

Cache handling for static assets

Hello,

I cannot find anywhere how to configure cache headers for static assets under workers. I'm planning to deploy Angular SSR app, obviously there are files like index.html or service worker which should be rather short lived and other that are immutable as build uses hash names.
How can I configure this with static assets ?

Also since I already dove into this question, can I somehow attach separately other files ? - Let's take an example of .well-known folder. That's something that is not necessary to be part of the build of my angular app, how can I make sure that those static files and folders are also served without having them in the angular app build.

Thank you so much!
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to cache static assets?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago
Static assets with cache and Image Optimization
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
17mo ago
How to cache workers with static assets (beta)?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
14mo ago
bundling static assets
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago