DenoDDeno
Powered by
tmcwT
Deno•3y ago•
2 replies
tmcw

Is it possible to use Cache-Control headers to control Deno's cache

I've seen via an issue ( https://github.com/denoland/deno/issues/16296 ) that Deno stores its metadata.json files in its cache directory so that it has response headers from when the dependency was downloaded, for cache invalidation. Is there cache invalidation based on these headers? Like if I have a dependency via HTTP that has Cache-Control: no-cache, can it be re-downloaded each time it's requested?
GitHub
deno cache: add option: deterministic · Issue #16296 · denoland/de...
avoid the "make deterministic DENO_DIR" workaround in #16295 let me call deno cache --deterministic --lock=lock.json --lock-write main.ts to produce $DENO_DIR/deps/*/.metadata.json file...
deno cache: add option: deterministic  · Issue #16296 · denoland/de...
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is it possible to use Yarn with Deno?
wuX4anWwuX4an / help
2y ago
Is it possible to use Deno KV on subhosting?
Ariel ContiAAriel Conti / help
3y ago