CacheControlCacheResolver

constructor(delegateResolver: CacheResolver = FieldPolicyCacheResolver)

Creates a new CacheControlCacheResolver with no max ages. Use this constructor if you want to consider only the expiration dates.


constructor(maxAgeProvider: MaxAgeProvider, delegateResolver: CacheResolver = FieldPolicyCacheResolver)

Parameters

maxAgeProvider

the provider for the max age of fields

delegateResolver

the resolver to delegate to for non-stale fields, by default FieldPolicyCacheResolver