Open
Labels
apps/auth-serviceOrigin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLIOrigin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLIenhancementNew feature or requestNew feature or requestparkedExplored and written down; not planned until a need appearsExplored and written down; not planned until a need appears
Milestone
Description
Problem
Since the pages moved into auth, every page is rendered per request with no-store, so every hit reaches auth. Most real sign-ins can't be cached (they carry a pending request), but bots and people opening auth.sourceorigin.dev directly get an identical page every time.
Proposal
A cache class for pages that are the same for every anonymous visitor: cacheable only when the request has no cookies and no query, and the response sets none. Send Cache-Control: public, s-maxage=60, and have the edge bypass its cache whenever a cookie is present.
Low priority: it mostly absorbs floods.
Done when
- Tests pin both guards: a request with a cookie or a query, or a response setting a cookie, is never marked cacheable.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)
Metadata
Metadata
Assignees
Labels
apps/auth-serviceOrigin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLIOrigin Auth at auth.sourceorigin.dev, its settings and developer console, and the operator CLIenhancementNew feature or requestNew feature or requestparkedExplored and written down; not planned until a need appearsExplored and written down; not planned until a need appears
Type
Projects
- StatusShow more project fieldsNeeds Triage
Activity