# Cloudflare pages stale assets

> Cloudflare pages stale assets is an open-source agent skill for cloud and infrastructure. Diagnoses why a Cloudflare Pages site still serves old assets after a deploy. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JinNing6/Noosphere/tree/main/shared_skills/active/cloudflare-pages-stale-assets
- **Repository:** https://github.com/jinning6/noosphere
- **GitHub stars:** 18
- **License:** Apache-2.0
- **Skill name:** cloudflare-pages-stale-assets
- **Collection:** https://github.com/JinNing6/Noosphere
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through finding the layer responsible when a static site on Cloudflare Pages keeps showing old CSS, JavaScript, or UI after a successful deployment. It separates problems in the deployment itself, custom domain routing, edge or browser caching, and runtime JavaScript errors before any code is changed.

The workflow has the agent confirm the repository state and the output directory Pages uses, then request the pages.dev address, the apex domain and the www hostname with cache-busting query strings. It records status codes, redirects, ETag, CF-Cache-Status and Age headers to compare what each hostname serves against the latest commit.

When stale static files are the cause, the skill has the agent add release-specific version parameters to CSS and JS URLs across HTML pages, then re-fetch the live HTML and assets to confirm the change. It expects access to the project repository, network fetches of the live site and, where possible, a real browser for checking the rendered page. The skill ships as a single SKILL.md with no bundled scripts.

## When your agent uses it

> Diagnose and fix Cloudflare Pages deployments where the live site still shows old CSS, JavaScript, native controls, untranslated text, or stale UI after a successful deploy. Use for static websites on Cloudflare Pages, custom domains, pages.dev previews, browser-cache disagreements, and "it deployed but I still see the old page" reports.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/cloudflare-pages-stale-assets)
- [License: Apache-2.0](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/cloudflare-pages-stale-assets)

## Features

- **Layered failure diagnosis:** Separates deployment, domain routing, edge cache, browser cache and runtime causes before changing anything.
- **Multi-hostname comparison:** Checks the pages.dev address, apex domain and www host and records headers that reveal cache state.
- **Asset versioning fix:** Adds release identifiers to CSS and JavaScript URLs so browsers fetch current files.
- **Post-deploy verification:** Confirms live HTML references the intended assets and that the rendered page behaves correctly.
- **Completion checklist:** Defines the conditions that must hold before the work is considered finished, including commit scope.

## Good for

- Fix a Cloudflare Pages site that shows old styles after a successful deploy
- Check whether a custom domain is serving the same build as the pages.dev preview
- Version CSS and JavaScript URLs so visitors stop seeing a stale interface
- Diagnose untranslated text or missing UI changes on a static Pages site

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/cloudflare-pages-stale-assets` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/cloudflare-pages-stale-assets &&
cp -R "$tmp/shared_skills/active/cloudflare-pages-stale-assets" ~/.claude/skills/cloudflare-pages-stale-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/cloudflare-pages-stale-assets` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/cloudflare-pages-stale-assets` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/cloudflare-pages-stale-assets &&
cp -R "$tmp/shared_skills/active/cloudflare-pages-stale-assets" ~/.agents/skills/cloudflare-pages-stale-assets &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/cloudflare-pages-stale-assets` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/cloudflare-pages-stale-assets` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/cloudflare-pages-stale-assets &&
cp -R "$tmp/shared_skills/active/cloudflare-pages-stale-assets" ~/.cursor/skills/cloudflare-pages-stale-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cloudflare-pages-stale-assets` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/cloudflare-pages-stale-assets
```

Or copy the folder to `~/.gemini/skills/cloudflare-pages-stale-assets` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cloudflare-pages-stale-assets`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/cloudflare-pages-stale-assets &&
cp -R "$tmp/shared_skills/active/cloudflare-pages-stale-assets" ~/.copilot/skills/cloudflare-pages-stale-assets &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cloudflare-pages-stale-assets` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JinNing6/Noosphere.git
```

Then copy `Noosphere/shared_skills/active/cloudflare-pages-stale-assets` into your agent's skills folder as `cloudflare-pages-stale-assets`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Cloudflare pages stale assets need to run?

It assumes a static website hosted on Cloudflare Pages and access to its repository and live URLs. It bundles no scripts, and its instructions use network fetches and, when possible, a real browser.

### When should the agent use Cloudflare pages stale assets?

When a site on Cloudflare Pages still shows old CSS, JavaScript, native controls or untranslated text after a deploy reported success, including reports involving custom domains or pages.dev previews.

### Does Cloudflare pages stale assets change files automatically?

Its workflow can lead to edits, such as versioning static asset URLs in every HTML page or fixing a JavaScript exception, but the fix depends on which layer the diagnosis identifies.

### How do I install Cloudflare pages stale assets in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cloudflare-pages-stale-assets to use it in all your projects, or to .claude/skills/cloudflare-pages-stale-assets in one project.

### Does Cloudflare pages stale assets run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Cloudflare pages stale assets?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Cloudflare pages stale assets?

The closest alternatives to Cloudflare pages stale assets are Gem devops guidelines, Cloudflare deploy, Cloudflare, Vibe safe deploy and Deploy.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Gem devops guidelines](https://ai-powered.com/skills/gem-devops-guidelines): Gem devops guidelines is an open-source agent skill for cloud and infrastructure.
- [Cloudflare deploy](https://ai-powered.com/skills/cloudflare-deploy): Cloudflare deploy is a free agent skill for cloud and infrastructure.
- [Cloudflare](https://ai-powered.com/skills/cloudflare-cloudflare): Cloudflare is an open-source agent skill for cloud and infrastructure.
- [Vibe safe deploy](https://ai-powered.com/skills/vibe-safe-deploy): Vibe safe deploy is an open-source agent skill for cloud and infrastructure.
- [Deploy](https://ai-powered.com/skills/deploy-zeitlos): Deploy is an open-source agent skill for cloud and infrastructure.
- [Deployment patterns](https://ai-powered.com/skills/deployment-patterns): Deployment patterns is an open-source agent skill for cloud and infrastructure.
- [Web perf](https://ai-powered.com/skills/web-perf): Web perf is an open-source agent skill for developer tools.
- [SEO drift](https://ai-powered.com/skills/seo-drift): SEO drift is an open-source agent skill for marketing and seo.

---
Source: https://ai-powered.com/skills/cloudflare-pages-stale-assets
