Use when a response served through Cloudflare (Workers / Workers Static Assets) arrives uncompressed — no content-encoding header, transferred size equals raw size despite Accept-Encoding gzip/br/zstd — or when auditing transfer sizes shows full-size HTML/JS.
Ships in web-perf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cloudflare's edge refuses to transform (= compress) any response carrying a strong ETag. A strong ETag ("abc", no W/ prefix) promises byte-identity; compressing would break that promise, so the edge skips compression entirely. This is the #1 cause of uncompressed responses behind Cloudflare and it applies to Worker-generated responses AND Workers Static Assets.
Facts that counter the usual wrong guesses:
Content-Encoding: identity from the origin/worker also blocks it (some frameworks set this only for localhost as a dev workaround — irrelevant in production).# Same size with and without Accept-Encoding == not compressed. Trust bytes, not headers.
curl -s -o /dev/null -w '%{size_download}\n' https://site/
curl -s -H 'Accept-Encoding: gzip, br' -o /dev/null -w '%{size_download}\n' https://site/
Then correlate: list several routes' etag / content-encoding headers. In a typical incident, every route WITH a strong ETag was uncompressed and every route WITHOUT one was zstd'd — that correlation is the proof.
| Path | Fix | Why this shape |
|---|---|---|
| Worker-rendered responses (only if you add a Worker script) | Rewrite ETag to weak W/"..." in the Worker after the response is built | Weak ETag keeps If-None-Match 304s while permitting transforms |
Hashed build assets (/_astro/*) | public/_headers: ! ETag + Cache-Control: public, max-age=31536000, immutable | Workers Assets serve BEFORE the worker runs — no middleware can reach them. Hashed URLs need no validator; removing ETag without adding immutable would regress to full re-downloads |
| Unhashed public assets (og images) | Leave alone | Stable URLs need ETag 304s; images are incompressible anyway |
immutable — kills 304 revalidation.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
/web-perf:diagnosing-missing-edge-compressionfrom web-perf
npx claudepluginhub naporin0624/astro-agent-starter --plugin web-perf