HttpxCachePolicy enum
Values
- standard → const HttpxCachePolicy
-
Standard behaviour.
- straightToNetwork → const HttpxCachePolicy
-
Behaves as if there is no HTTP cache for the request. It will still update the cache with the response.
- ignoreDirectives → const HttpxCachePolicy
-
Uses any response in the HTTP cache matching the request, not paying attention to Pragma / Cache Control directives in both the request and the cached response(s).
- staleWhileRevalidate → const HttpxCachePolicy
-
Enable stale-while-revalidate even for cached responses which do not have the directive (or if it's past its lifetime). It does not bypass Pragma / Cache Control directives (no-cache and/or min-fresh directives may prevent revalidation in background).
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
HttpxCachePolicy> - A constant List of the values in this enum, in order of their declaration.