Enum HtmxRequestCache
- Namespace
- Ramstack.HtmxToolkit
- Assembly
- Ramstack.HtmxToolkit.dll
Specifies the Fetch cache mode for an HTMX request.
public enum HtmxRequestCache
Fields
Default = 0Uses the browser's normal HTTP cache behavior. This is the Fetch default.
NoStore = 1Bypasses the cache and does not store the response in it.
Reload = 2Bypasses the cache lookup and updates the cache with the response.
NoCache = 3Revalidates a cached response before using it.
ForceCache = 4Uses a cached response even if stale, or fetches and caches a response on a cache miss.
OnlyIfCached = 5Uses a cached response even if stale, and fails on a cache miss.
Remarks
Supported only in HTMX 4.x.