Abbi Labs

2026-11-28 · Daily security tips

Is your CDN saving one user's data and showing it to the next?

Someone adds Cache-Control: public, s-maxage=60 to an API route to make it faster, or copies it from a caching example. On Vercel, the CDN caches a GET response with s-maxage unless the request has an Authorization header, or the response sets a cookie or says private, no-cache or no-store. Apps that sign people in with a cookie don't send Authorization, so a cached /api/me or account page can be served to the next person.

Check: sign in, open DevTools > Network and click a request that returns your own data. Read Cache-Control in the response headers. If it has public or s-maxage and x-vercel-cache says HIT, it's coming from the shared cache.

Fix: send Cache-Control: private, no-store on anything per-user, keep s-maxage for pages that are the same for everyone, then purge the CDN cache.

The full guide lists every rule Vercel uses to decide what gets cached, why s-maxage is hidden from DevTools, a two-browser test, the route handler fix and how to purge what's already cached.

Read the CDN caching guide →

Is your live site exposing something like this?

The free quick check looks at what your site already serves publicly: secret keys in your JavaScript, open /.env files and /.git folders, Supabase tables readable with your public key, missing security headers, CORS misconfiguration, insecure cookie flags and TLS certificate expiry. No sign-up needed.

No app handy?

Example result · our deliberately broken demo app

6 issues found: 3 critical, 1 high, 1 medium, 1 low

  • Critical: Stripe live secret key in public JavaScript
  • Critical: /.env file readable by anyone
  • High: Git repository exposed (/.git/HEAD)

The demo's problems are planted on purpose. Paste your own URL above to see yours.

No sign-up. Read-only public-resource and protocol metadata checks. No model prompts or tool execution. Scan only sites you own or are allowed to test.

Run on every deploy or use from Cursor / Claude Code via MCP →

Weekly AI-app security checklist

One short email a week: a practical check for apps built with Supabase, Next.js and AI tools (RLS, leaked keys, headers and more). Unsubscribe anytime.