CachePolicy constructor

const CachePolicy({
  1. bool preventIntermediateProxyCaching = false,
  2. bool preventCaching = false,
  3. bool requireConditionalRequest = false,
  4. Duration? expirationFromNow,

Creates a new cache policy.

Policies applied to Response.cachePolicy will add the appropriate headers to that response. See properties for definitions of arguments to this constructor.


const CachePolicy(
    {this.preventIntermediateProxyCaching = false,
    this.preventCaching = false,
    this.requireConditionalRequest = false,