01

Classify every route

Separate immutable assets, public documents, frequently updated pages, personalized responses, APIs, admin pages, and health endpoints. Each class needs a different policy. ‘Cache everything’ is not a strategy.

02

Set explicit headers

Use browser and shared-cache directives intentionally. Immutable hashed assets can live for a long time. Public articles can use short browser freshness with longer shared freshness. Authentication, dashboards, and measurement endpoints should not be stored in shared caches.

03

Plan invalidation

Prefer versioned assets and predictable revalidation. Document how editorial changes, price changes, and emergency corrections reach visitors. Test purge behavior before relying on it.

  • Route classes documented
  • Private routes excluded
  • Stale behavior chosen
  • Purge path tested
04

Observe cache behavior

Record cache status, age, response time, and origin load. A high hit ratio is not automatically good if users receive incorrect content. Monitor correctness and origin protection together.

Primary references

Sources are provided for policy and technical context. External pages can change after our review date.

Editorial note

Prepared by the SiteSignal Hub research desk. This article is educational and does not guarantee search rankings, advertising approval, or business results. Read our editorial standard.