Index of every page on this site: llms.txt
All skills
Run it yourself

Designs, audits and implements caching for a specific website or app across every layer, including HTTP/browser headers (Cache-Control, ETag, Vary), service workers, CDNs and edge (Cloudflare, Vercel, Netlify, Fastly, CloudFront, Akamai), nginx/Varnish, in-process and Redis/Valkey/Memcached caches, database and ORM caches, framework caching (Next.js use cache/ISR, Nuxt, SvelteKit, Astro, Rails, Django, Laravel, Spring, ASP.NET), CMS, REST/GraphQL APIs, mobile clients, LLM prompt and semantic caching, and CI build caches. Detects the stack, classifies every route, and writes a validated caching plan covering invalidation, stampede protection, cache security and verification. Use when the user mentions caching, stale content, purging, CDN or Redis setup, or when pages are slow, TTFB is high, or origin, database or hosting costs are too high, even if they never say "cache". Not for clearing local package-manager caches or explaining CPU caches.

  • 81 files
  • 630.9 KB
  • MIT
  • Updated 4 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/onlymoein/master-cache-skill/caching-strategy

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesplatformsother-hosts.md

≈894 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Other hosts and small CDNs

Last reviewed: 2026-10-27 · Applies to: Fly.io, Railway, Render, Heroku, Firebase Hosting, AWS Amplify, GitHub Pages, bunny.net

When to read this

When the app is deployed to one of these platforms. For most of them the advice is the same: send explicit Cache-Control on every response and, if HTML or API caching is needed, put a real CDN (Cloudflare, Fastly, bunny, CloudFront) in front. Vendor-neutral concepts: references/layers/cdn-concepts.md.

How to detect

fly.toml, railway.json/railway.toml, render.yaml, Procfile (Heroku), firebase.json, amplify.yml, .github/workflows/*pages* or a gh-pages branch, bunny pull-zone settings or CDN-Tag headers in code.

Rules and gotchas

  1. Always send explicit Cache-Control. On 2026-03-30 a Railway change tied to a Surrogate Keys rollout enabled caching for domains whose CDN was off; for 52 minutes most GET responses without explicit cache headers were cached by default, exposing authenticated data. Platform defaults change without notice; your headers are the only stable control.
  2. Fly.io has no HTTP response cache. Fly Proxy does routing, load balancing, TLS and autostart/stop. fly-replay "replay caching" caches routing decisions only (same organization, best effort). For caching, put a CDN in front or run nginx/Varnish as a Fly app ahead of the app machines (references/layers/reverse-proxies.md).
  3. bunny.net: tags via the CDN-Tag response header and the pull zone purge API (CacheTag). With Perma-Cache enabled, wildcard and tag purges don't work; a single-URL purge deletes from Perma-Cache storage first; a full pull-zone purge switches to a new storage directory (delete the old one manually). One third-party source says bunny treats the whole CDN-Tag value as one tag (no comma split); verify before designing multi-tag schemes. Enable Origin Shield.
  4. Firebase Hosting, Amplify, Render, Heroku, GitHub Pages: their CDN and header behavior wasn't covered in this skill's research. Configure headers in the platform's config (firebase.json headers, Amplify custom headers, Render headers) per references/core/http-semantics.md, and verify with curl. Hashed assets get immutable; HTML no-cache.
  5. Heroku and Render dynos/instances are ephemeral and often multiple: in-process caches drift and vanish on restart. Use a managed Redis/Valkey for shared app caching.

Default recipe

# HTML and APIs from the app
Cache-Control: no-cache                 # or private, no-cache / no-store per the decision tree
ETag: "<hash>"

# Hashed assets
Cache-Control: public, max-age=31536000, immutable

If a CDN is added in front, follow that CDN's platform reference for edge TTLs and purge.

Verify

curl -s -o /dev/null -D - https://app.example.com/ | grep -iE 'cache-control|age|via|server|x-cache|cdn-cache'
# Logged-in request: no Age, no HIT
curl -s -o /dev/null -D - -H 'Cookie: session=x' https://app.example.com/dashboard | grep -iE 'cache-control|age'

Sources

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 46a6ee6. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago
metadata
{
  "version": "1.1.1",
  "last-reviewed": "2026-10-28"
}
Other metadata
compatibility
Live header probes need network access and user-supplied URLs; every other step runs offline with the Python 3 standard library.

README badge

README badge for onlymoein/master-cache-skill