# Cloudflare Pages Stale Assets

> 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.

- **Type:** Skill
- **Install:** `agentstack add skill-jinning6-noosphere-cloudflare-pages-stale-assets`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [JinNing6](https://agentstack.voostack.com/s/jinning6)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [JinNing6](https://github.com/JinNing6)
- **Source:** https://github.com/JinNing6/Noosphere/tree/main/shared_skills/releases/1.0.0/cloudflare-pages-stale-assets

## Install

```sh
agentstack add skill-jinning6-noosphere-cloudflare-pages-stale-assets
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Cloudflare Pages Stale Assets

Use this before changing UI code again. First prove whether the failure is deployment, domain routing, edge/browser cache, or runtime JavaScript.

## Workflow

1. Confirm the repo state:
   - Read project agent rules first.
   - Check the current branch, latest commit, and dirty files.
   - Identify the exact generated/static output directory used by Pages.
2. Compare every live hostname:
   - Fetch `https://.pages.dev/`, the apex custom domain, and `www`.
   - Add a cache-busting query to HTML, CSS, and JS URLs, for example `?codex_check=`.
   - Record status, redirect target, `ETag`, `CF-Cache-Status`, `Age`, and whether the expected new code appears.
3. Distinguish failure layers:
   - Deployment: latest commit is not in the live HTML.
   - Domain routing: `pages.dev` is current but custom domain is stale or SSL/route-broken.
   - Asset cache: HTML is current but references unversioned old CSS/JS.
   - Browser cache: network fetch is current but the user's browser still displays old assets.
   - Runtime: assets are current but console errors prevent enhancement.
4. Fix at the owning layer:
   - If production branch is wrong, fix Pages branch control or redeploy the intended branch.
   - If custom domain differs, fix Pages custom domain binding and DNS before editing UI.
   - If stale CSS/JS is plausible, version static asset URLs in every HTML page, such as `style.css?v=` and `language.js?v=`.
   - If runtime fails, inspect console errors and fix the actual JavaScript exception.
5. Verify after deploy:
   - Fetch live HTML and confirm it references versioned assets.
   - Fetch versioned CSS/JS and confirm they contain the expected selectors/functions.
   - Use a real browser when possible to confirm DOM enhancement, not only source text.
   - Tell the user whether they need a hard refresh; after versioned assets they usually should not.

## Completion Standard

The latest live HTML is proven to reference the intended assets, all affected hostnames are checked or explicitly reported as unreachable, runtime errors are ruled out or fixed, and the final commit includes only task-scoped files.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [JinNing6](https://github.com/JinNing6)
- **Source:** [JinNing6/Noosphere](https://github.com/JinNing6/Noosphere)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jinning6-noosphere-cloudflare-pages-stale-assets
- Seller: https://agentstack.voostack.com/s/jinning6
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
