© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to cache static assets? - Cloudflare Developers
CD
Cloudflare Developers
•
16mo ago
•
2 replies
Nick
How to cache static assets?
How can I enable caching for static assets
? By default files like
.js
,
.css
,
.png responding with
:
cache
-control
: public
, max
-age
=0
, must
-revalidate
Tried to use
these caching rules
, but from what I reed and tested these wont work for workers static assets
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
How to cache workers with static assets (beta)?
CD
Cloudflare Developers / workers-and-pages-help
16mo ago
Cache handling for static assets
CD
Cloudflare Developers / workers-and-pages-help
13mo ago
Static assets with cache and Image Optimization
CD
Cloudflare Developers / workers-and-pages-help
2y ago
How to update Workers Static Assets?
CD
Cloudflare Developers / workers-and-pages-help
14mo ago