CacheControlCacheResolver

constructor(maxAgeProvider: MaxAgeProvider, delegateResolver: CacheResolver)

Parameters

maxAgeProvider

the provider for the max age of fields

delegateResolver

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


constructor(maxAgeProvider: MaxAgeProvider, fieldPolicies: Map<String, FieldPolicies>)

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