Enums.NetworkCachePolicy enumeration

ConstantDescription
Enums.NetworkCachePolicyAlwaysNetwork(0) Always load from network and do not check if the cache has a valid entry (similar to the "Reload" feature in browsers). In addition, force intermediate caches to re-validate.
Enums.NetworkCachePolicyPreferNetwork(1) Load from the network if the cached entry is older than the network entry. This will never return stale data from the cache, but revalidate resources that have become stale.
Enums.NetworkCachePolicyPreferCache(2) Load from cache if available, otherwise load from network. Note that this can return possibly stale (but not expired) items from cache.
Enums.NetworkCachePolicyAlwaysCache(3) Only load from cache, indicating error if the item was not cached (i.e., off-line mode).

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close