Reference

cacheControl

Sets the cache policy for the current app-router render. Call this during a loader or route render to override the response `Cache-Control` policy; it throws outside an active app-router request.

Signature

function cacheControl(options: CacheControlOptions): void