API reference

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

C

classNetworkOnlyStrategy

@codexo/exojs / resources / stable

CacheStrategy that always fetches from the network and never reads from or writes to any CacheStore. Useful for assets that must always be fresh (e.g. live configuration files) or for environments where persistent storage is unavailable. The `stores` argument is accepted but intentionally ignored. Returns the fully constructed resource — callers do not need to call AssetFactory.create again.

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

CacheStrategy that always fetches from the network and never reads from or writes to any CacheStore.

Useful for assets that must always be fresh (e.g. live configuration files) or for environments where persistent storage is unavailable. The `stores` argument is accepted but intentionally ignored.

Returns the fully constructed resource — callers do not need to call AssetFactory.create again.

Constructors 1
new(): NetworkOnlyStrategy
Methods 1
resolve(request: CacheRequest, _stores: readonly CacheStore[]): Promise<unknown>
Source