esroyo / systemjs-cdn

A fast, smart, & global content delivery network (CDN) for modern(es2015+) web development.
MIT License
3 stars 1 forks source link

Is there a plan to add a cache based on disk? #2

Closed yeli19950109 closed 8 months ago

yeli19950109 commented 10 months ago

Is there a plan to add a cache based on disk?

esroyo commented 8 months ago

hi @yeli19950109 current version is using Deno KV to cache the results for CACHE_MAXAGE. Default values is 600 (10m) configurable per env var.


EDIT: I have changed the variable to a simpler CACHE=true|false. If CACHE is active the result will be cached according to the upstream cache-control max-age header or to a default of '600' (10m).