API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceCachePolicy
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.
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.