Guides setting Cache-Control, ETags, max-age, and stale-while-revalidate so clients and proxies reuse responses without serving stale data. Use when responses lack cache headers, a bad deploy served stale content, or revalidation traffic is heavy.
HTTP already has a caching protocol; most bugs come from using half of it.
An endpoint with no Cache-Control gets cached by heuristic in ways you did
not choose, and an endpoint with no-cache everywhere throws away free
reuse. The job is to state freshness and validation explicitly so every
layer between server and user agrees on when a response is still good.
Cache-Control: public; per-user gets private; secrets and one-shot
tokens get no-store. Do not confuse no-cache (store, but revalidate
before use) with no-store (never write it down). The wrong one leaks or
wastes.max-age to the real tolerance for staleness. Ask how many
seconds a wrong answer is acceptable, and use that number. Fingerprinted
assets take a year; a pricing feed takes 30 seconds. Add s-maxage when
shared caches should hold it longer than browsers.ETag
(content hash) or Last-Modified. When the client sends
If-None-Match, compare and return 304 Not Modified with no body. A
304 costs headers, not payload, and skips regeneration.stale-while-revalidate. Pair it with
max-age so the cache returns the slightly-old copy instantly and
refetches in the background: max-age=60, stale-while-revalidate=300.
Add stale-if-error to keep serving during an origin outage.Vary: Accept-Encoding, or two encodings
collide on one tag.curl -sI the endpoint, then
replay with -H 'If-None-Match: "<tag>"' and confirm a 304. Check that a
deploy which changes content also changes the ETag or the fingerprint.Cache-Control intentionally, with no route
falling back to server defaults?If-None-Match return 304 and an empty body?private/no-store set on every authenticated or secret-bearing
response, verified with a logged-in curl -I?This is response-header semantics for correctness and reuse. Edge topology, purging, and origin shielding belong to cdn-strategy; application-level memoization and object caches are performance-optimization territory. Browser back-forward cache quirks defer to the target browser's documented behavior.
What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job