Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-ci-cd-builds-build-caching-workflow-guide.mdA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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