© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
CD
Cloudflare Developers
•
14mo 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
85,042
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
14mo ago
Cache handling for static assets
CD
Cloudflare Developers / workers-and-pages-help
11mo ago
Static assets with cache and Image Optimization
CD
Cloudflare Developers / workers-and-pages-help
17mo ago
How to update Workers Static Assets?
CD
Cloudflare Developers / workers-and-pages-help
12mo ago