API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceCachePolicy

@codexo/exojs / assets / stable

Decides in which order a cache and the network are consulted for one acquisition. This is the extension point for custom caching behaviour. Implementations are stateless policy objects, free to be shared between routes and loaders: everything one call needs arrives in its CacheContext, and diagnostics travel with that context rather than with the policy. ExoJS ships CacheFirstPolicy (the default), NetworkFirstPolicy, NetworkOnlyPolicy and CacheOnlyPolicy.

0
props
1
methods
0
events
Import
import { CachePolicy } from '@codexo/exojs'

Decides in which order a cache and the network are consulted for one acquisition.

This is the extension point for custom caching behaviour. Implementations are stateless policy objects, free to be shared between routes and loaders: everything one call needs arrives in its CacheContext, and diagnostics travel with that context rather than with the policy.

ExoJS ships CacheFirstPolicy (the default), NetworkFirstPolicy, NetworkOnlyPolicy and CacheOnlyPolicy.

Methods1
Source