v138 · caching · headers

Prerender invalidation demo

Populate simulated speculation-rule prefetch and prerender entries, then clear them with Clear-Site-Data: "prefetchCache", "prerenderCache", "cache", or "*". The header builder shows the copied response header and the effective speculative cache actions.

Checking host browser support...

Build Clear-Site-Data header

Select directives

Clear-Site-Data: "prerenderCache"

Cache state simulation

Prefetch records

Prerender records

Event timeline

Edge cases modelled

"cache" and "*"

The parser adds prefetchCache when either broad cache directive is present, so prefetch records are not left stale.

Referrer origin scope

Speculation records are matched by the origin that initiated them. A cross-origin target created by this page is cleared; a record initiated by another origin is left alone.

Active prerenders

prefetchCache skips prefetch records attached to an active prerender. Send prerenderCache too when the prerendered document can be stale.

see also