Open
Description
We could support the specified cache
option for fetch with the following:
'default'
: This is our default so we exactly match the spec here'no-store'
: This is the same as CacheOverride: pass so we can fully support this'reload'
: Bypasses a cache check (so always goes to backend), then updates the cache - not possible, would require supporting insert without a successful transaction lookup'no-cache'
: Always revalidates to the backend - same as above'force-cache'
: Requires cache lookup ignoring staleness - not possible, but might make sense to support even if not properly implemented, since it’s kinda unobservable'only-if-cached'
: As above
We should likely:
- Throw for
'reload'
and'no-cache'
- Support
'force-cache'
and'only-if-cached'
with types / documentation warnings
Metadata
Metadata
Assignees
Labels
No labels
Activity