Skip to content

smelt.http.cache

Availability: Everywhere, including headless mode.

Runtime-owned HTTP response cache. Plugins can stash bodies under arbitrary keys to dedupe repeat fetches across a session.

smelt.http.cache.read

fun(key: string): string?

Look up a cached HTTP response by key. Returns the stored string or nil if no entry exists.

smelt.http.cache.write

fun(key: string, value: string): nil

Store value in the HTTP response cache under key.