Skip to main content
Latest
type alias CacheSetting
import { type CacheSetting } from "https://deno.land/x/deno_cache@0.7.1/file_fetcher.ts";

A setting that determines how the cache is handled for remote dependencies.

The default is "use".

  • "only" - only the cache will be re-used, and any remote modules not in the cache will error.
  • "use" - the cache will be used, meaning existing remote files will not be reloaded.
  • "reload" - any cached modules will be ignored and their values will be fetched.
  • string[] - an array of string specifiers, that if they match the start of the requested specifier, will be reloaded.
definition:
| "only"
| "reload"
| "use"
| string[]