/web:page-cachefrom web
Caches web pages locally as a reverse proxy for offline replay, bypassing bot detection and rate limits. Use for iterative site migration or mirroring.
Ships in web. 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.
Read when SKILL.md points to them.
web cache serve runs a caching reverse proxy on 127.0.0.1. Every GET response that flows
through it is saved as a body file plus a .json sidecar ({ headers, status }); later
requests are served from disk and the origin is not contacted.
Node 22+, and playwright-cli >= 0.1.20 on PATH to warm the cache with a browser. Locate
the web CLI once:
# <skill-dir> is the directory containing this SKILL.md
WEB=$(command -v web || echo "node <skill-dir>/../../cli/dist/web.mjs")
Fallback when published: npx -y @adobe/web-cli. Use an absolute <skill-dir>.
$WEB cache serve [--port <n>] [--cache <dir>] [--offline] [--timeout <ms>] [--also <origins>]
| Option | Default | Meaning |
|---|---|---|
--port | 3001 | 0 picks a free port; read it from the output |
--cache | .page-cache | cache directory |
--offline | off | serve from the cache only; a miss answers 504 |
--timeout | 30000 | upstream fetch deadline (ms) |
--also | none | other origins (an image CDN) whose assets are cached and served like the page's |
It prints { url, port, cache, offline, also } once listening, then runs in the foreground
until Ctrl-C, SIGTERM or GET /__stop. Run it in the background and keep the output:
$WEB cache serve --port 0 --cache .page-cache > .page-cache.json 2>.page-cache.log &
PID=$!
for _ in $(seq 50); do # wait for the startup document; stop early if the process died
PROXY=$(jq -er .url .page-cache.json 2>/dev/null) && break
kill -0 "$PID" 2>/dev/null || { cat .page-cache.log >&2; break; }
sleep 0.2
done
[fetch], [hit], [miss]) go to stderr.$PROXY/path?_origin=https://example.com. The first request sets an
origin cookie, so later navigations in the same browser need only the path; pass a new
?_origin= to switch origins. With a browser (JS, lazy loading, a normal fingerprint):
$WEB page overlays "https://example.com" --save-recipe # once per site: records the banner rules
S=$($WEB browser open "$PROXY/?_origin=https://example.com" | jq -r .session) # starts with them hidden
Scroll to the bottom and back to trigger lazy images, then $WEB browser close --session "$S".curl -s $PROXY/__status → { hits, misses, errors, cached, dir, offline, also }.curl -s $PROXY/__stop.--offline (same --cache, same --also). Run the other
skills against $PROXY/?_origin=…: page tree, page reduce, page collect.<cache>/<host>_<hash8>/<path>, with the headers and status in <path>{meta}.json. /x/ is
x/{index}.html; /x without an extension is x/{bare}.html (so a stored /x → /x/ redirect
never answers /x/). A query is percent-encoded and inserted before the extension after {q}
(MD5-hashed past 200 characters). A URL path cannot contain braces, so these made-up names never
collide with a real URL, and no path can leave the cache directory. The hash is of the full
origin, so scheme and port never collide.
srcset and CSS url() included.--also: every absolute URL on that origin, in HTML, CSS or
JavaScript text, is rewritten to a proxy path carrying _origin, at cache time and at serve
time, and so are the url() references of a CDN stylesheet (relative ones resolved against the
stylesheet) and the Location of a CDN redirect. Pages cached before naming it are served rewritten too; one more online pass fills
the assets.Range, If-None-Match, …) are not sent upstream, so
what is stored is always the full resource; a client's Range request gets the full body.Location rewritten.{meta}.json, then serve online again.Binds 127.0.0.1. Only origins introduced by a direct ?_origin= request are proxied online;
cookie-only requests for others are refused (403), so page JS cannot use the proxy to probe
internal hosts. /__stop rejects cross-origin callers. Responses carry
access-control-allow-origin: *, so another site open in the same browser can read cached pages;
keep the proxy for local work.
web cache record loads a page in a browser, scrolls it and saves every request into
<cache>/<host>_<hash8>.har. web cache proxy is a forward proxy on 127.0.0.1 that answers
those requests at their real URLs, so a browser opened with --proxy sees the original site
(absolute URLs, cookies, third-party CDNs) with no ?_origin= rewriting.
Pick it over cache serve when page scripts or absolute URLs break under the reverse proxy, or
when assets come from several origins. Limits: the browser must be Playwright Chrome opened by
web browser open --proxy (it trusts the proxy's self-signed certificate); a miss is fetched
live (504 with --offline) and never stored; one record call per URL.
$WEB cache record https://example.com --cache .har-cache # repeat per URL
$WEB cache proxy --cache .har-cache --port 0 > .har-cache.json 2>.har-cache.log &
PID=$!
for _ in $(seq 50); do # wait for the startup document
PROXY=$(jq -er .url .har-cache.json 2>/dev/null) && break
kill -0 "$PID" 2>/dev/null || { cat .har-cache.log >&2; break; }
sleep 0.2
done
S=$($WEB browser open https://example.com --proxy "$PROXY" | jq -r .session)
$WEB page tree --session "$S"
$WEB browser close --session "$S"
curl -s "$PROXY/__status" # { hits, misses, live, liveFailed, blocked, missed, entries }
curl -s "$PROXY/__stop"
cache proxy option | Default | Meaning |
|---|---|---|
--port | 3002 | 0 picks a free port; read it from the output { url, port, cache, offline, entries } |
--cache | .har-cache | directory of .har files, read once at start |
--offline | off | a miss answers 504 instead of going live |
--timeout | 5000 | live fetch deadline (ms); a failed or timed-out fetch answers 502 |
A tracker request missing from the cache (analytics, ad and tag-manager hosts) is refused with 403; a recorded one is served like any other hit. WebSocket upgrades are refused. The proxy writes its certificate and private key into the cache directory: do not commit it. Re-recording a URL replaces its HAR only once the new recording is complete; restart the proxy to pick it up.
When filling stops at a challenge page or Access Denied, fill through a remote browser that
gets past bot protection (Bright Data's Browser API, any Chrome DevTools endpoint): a recipe
with "cdpEndpoint": "env:<VAR>" makes browser open --cache and cache record load pages
there, while the HARs are written locally; cache proxy --offline then replays them
downstream with no network, to a local browser (WEB_RECIPE= $WEB browser open <url> --proxy …:
--proxy refuses a remote-browser recipe). Set WEB_TIMEOUT=120000 for slow first loads and fill one site at
a time. Recipe, credentials and Bright Data specifics: $WEB doc remote-browser.
trash .page-cache).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/browser-probeDetects CDN bot protection (Akamai, Cloudflare, DataDome, AWS WAF) by probing a URL with escalating headless browser configurations through `web probe`, and writes a browser recipe that other web commands load with `--recipe`. Use when a page is blocked, empty, or shows a 403, "access denied", or captcha page in headless Chrome, or before automating a site known to block bots./cdp-connectSuperseded by the web CLI: attach to an already-running Chrome with `web browser attach <cdp-url>`, then drive it with `web browser eval|run|cdp|screenshot`. Use when the user asks to attach to, connect to, or control an existing Chrome running with --remote-debugging-port./cdp-ext-pilotLaunches a persistent, headless-by-default Chromium (playwright-cli's) with an unpacked extension loaded through `web ext`, opens the extension's side panel, popup, or options page, and interacts with it over `web browser eval/cdp`. Handles the Chrome 137+ restriction on loading unpacked extensions and the side panel user-gesture requirement. Use when testing, automating, or validating a Chrome extension's UI./domain-maskServes a real URL behind a custom display domain through a local trusted-HTTPS reverse proxy (mkcert certificate, /etc/hosts entry) with `web mask`, so demos and recordings show a clean domain with a padlock. macOS only. Use when the user wants to mask, alias, or fake a domain for a demo, recording, or screenshot./page-collectExtracts structured resources from a webpage with the web CLI: icons (SVGs classified as icon or logo and optimized for AEM Edge Delivery Services /icons/), metadata and Open Graph tags, body text, forms, videos, and social links. Use when migrating pages to Edge Delivery Services, auditing a site, or extracting a page's icons, metadata, or other assets./page-langsDetects the languages on a webpage, both declared in markup (html lang, hreflang links, nested lang attributes, Content-Language meta) and present in the body text (Google CLD3), and reports where the two disagree. Use for i18n audits, hreflang validation, multilingual page checks, or when asked what language a page is in.npx claudepluginhub adobe/skills --plugin webOther plugins' skills for the same job