api.md
attributes
| source_path | references/static-assets/api.md |
|---|---|
| source_sha256 | 93513c4a113c983b452bd851c9bb30dbdeec52ffcfe1dcb6e76f7237ff67be3b |
| source_url | https://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/static-assets/api.md |
| supporting_skill_id | 40184 |
| upstream_revision | 47dfc2ce969bf62acf8bc231198ade4bb02712e0 |
Static Assets Binding API
Read the binding reference before implementing calls. Check the configured binding name and use the project's existing environment types.
| Task | Documentation |
|---|---|
| Forward a request or fetch a specific asset | Runtime API reference |
| Understand how binding requests apply HTML and fallback settings | Binding fetch behavior and HTML handling |
| Run authorization or transform content before serving | Run your Worker script first |
| Inspect default MIME, cache, and validation headers | Default headers |
| Add or override response headers | Custom headers and Worker-response caveat |
| Fetch assets imported by Vite | Vite asset features |
When selecting a different asset, construct a full URL using the incoming request as the base. Preserve the returned status and headers when transforming a response; do not collapse every unsuccessful response into an application 404.
See configuration.md for bindings and patterns.md for routing choices.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.