CacheControl class

A cache control response.

See:

Constructors

CacheControl({List<CacheControlDirective> directives = const <CacheControlDirective>[CacheControlDirective.private, CacheControlDirective.noTransform, CacheControlDirective.mustRevalidate, CacheControlDirective.staleWhileRevalidate, CacheControlDirective.staleIfError], Duration maxAge = const Duration(seconds: 10), Duration staleAge = const Duration(minutes: 5), Duration staleIfErrorAge = const Duration(minutes: 10)})
const

Properties

directives List<CacheControlDirective>
final
hashCode int
The hash code for this object.
no setteroverride
maxAge Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staleAge Duration
final
staleIfErrorAge Duration
final

Methods

hasDirective(CacheControlDirective directive) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

defaultCacheControl → const CacheControl