cacheScope property
ReadResourceResultCacheScope?
get
cacheScope
Indicates the intended scope of the cached response, analogous to HTTP
Cache-Control: public vs Cache-Control: private.
"public": The response does not contain user-specific data. Any client or intermediary (e.g., shared gateway, caching proxy) MAY cache the response and serve it across authorization contexts."private": The response MAY be cached and reused only within the same authorization context. Caches MUST NOT be shared across authorization contexts (e.g., a different access token requires a different cache).
Implementation
ReadResourceResultCacheScope? get cacheScope => $optional('cacheScope', $enum(ReadResourceResultCacheScope.of));