Package | com.distriqt.extension.nativewebview |
Class | public class CachePolicy |
Inheritance | CachePolicy ![]() |
Cache policies to use with a WebView.
You should test carefully before relying on a cache policy as they are treated slightly differently across platforms. We have attempted to match operation as closely as possible however there are slight differences between platform operations that haven't been overcome.
Constant | Defined By | ||
---|---|---|---|
LOAD_CACHE_ELSE_NETWORK : int = 1 [static]
Use the cache (no matter how out of date), or if no cached response exists, load from the network
| CachePolicy | ||
LOAD_CACHE_ONLY : int = 3 [static]
Offline mode: use the cache (no matter how out of date), but don't load from the network
| CachePolicy | ||
LOAD_DEFAULT : int = -1 [static]
The default will obey cache policy provided by the loaded pages
| CachePolicy | ||
LOAD_NO_CACHE : int = 2 [static]
Don't use the cache
| CachePolicy |
LOAD_CACHE_ELSE_NETWORK | Constant |
public static const LOAD_CACHE_ELSE_NETWORK:int = 1
Use the cache (no matter how out of date), or if no cached response exists, load from the network
LOAD_CACHE_ONLY | Constant |
public static const LOAD_CACHE_ONLY:int = 3
Offline mode: use the cache (no matter how out of date), but don't load from the network
LOAD_DEFAULT | Constant |
public static const LOAD_DEFAULT:int = -1
The default will obey cache policy provided by the loaded pages
LOAD_NO_CACHE | Constant |
public static const LOAD_NO_CACHE:int = 2
Don't use the cache