cloudflare · Cloudflare Workers Docs
Workers Build caching
How to enable and manage build caching for Cloudflare Workers to reduce build times by storing package manager dependencies and framework-specific build outputs.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Build caching
How to enable and manage build caching for Cloudflare Workers to reduce build times by storing package manager dependencies and framework-specific build outputs.
When To Use
Use when you need to reduce Cloudflare Workers build durations by configuring automated caching for npm, yarn, pnpm, bun, or specific web frameworks like Next.js and Astro.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-ci-cd-builds-build-caching-workflow-guide.md | A guide explaining how to improve build times by caching dependencies and build output in Cloudflare Workers projects. | Questions about a guide explaining how to improve build times by caching dependencies and build output in Cloudflare Workers projects. |
What This Skill Covers
- Improve Workers build times by caching dependencies and build output between builds with a project-wide shared cache.
- Main sections:
About build cache,Package managers,Frameworks,Limits,Enable build cache.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/ci-cd/builds/build-caching
