|
@@ -55,6 +55,7 @@ This document lays out the current public properties and methods for the React N
|
55
|
55
|
- [`allowFileAccess`](Reference.md#allowFileAccess)
|
56
|
56
|
- [`saveFormDataDisabled`](Reference.md#saveFormDataDisabled)
|
57
|
57
|
- [`cacheEnabled`](Reference.md#cacheEnabled)
|
|
58
|
+- [`cacheMode`](Reference.md#cacheMode)
|
58
|
59
|
- [`pagingEnabled`](Reference.md#pagingEnabled)
|
59
|
60
|
- [`allowsLinkPreview`](Reference.md#allowsLinkPreview)
|
60
|
61
|
- [`sharedCookiesEnabled`](Reference.md#sharedCookiesEnabled)
|
|
@@ -985,6 +986,22 @@ Sets whether WebView should use browser caching.
|
985
|
986
|
|
986
|
987
|
---
|
987
|
988
|
|
|
989
|
+### `cacheMode`
|
|
990
|
+
|
|
991
|
+Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This property allows the client to override this behavior.
|
|
992
|
+
|
|
993
|
+Possible values are:
|
|
994
|
+- `LOAD_DEFAULT` - Default cache usage mode. If the navigation type doesn't impose any specific behavior, use cached resources when they are available and not expired, otherwise load resources from the network.
|
|
995
|
+- `LOAD_CACHE_ELSE_NETWORK` - Use cached resources when they are available, even if they have expired. Otherwise load resources from the network.
|
|
996
|
+- `LOAD_NO_CACHE` - Don't use the cache, load from the network.
|
|
997
|
+- `LOAD_CACHE_ONLY` - Don't use the network, load from the cache.
|
|
998
|
+
|
|
999
|
+| Type | Required | Default | Platform |
|
|
1000
|
+| ------- | -------- | -------------| -------- |
|
|
1001
|
+| string | No | LOAD_DEFAULT | Android |
|
|
1002
|
+
|
|
1003
|
+---
|
|
1004
|
+
|
988
|
1005
|
### `pagingEnabled`
|
989
|
1006
|
|
990
|
1007
|
If the value of this property is true, the scroll view stops on multiples of the scroll view’s bounds when the user scrolls. The default value is false.
|