Skip to content

Commit

Permalink
feat: new options for finegrained control of caching
Browse files Browse the repository at this point in the history
* `CACHE_REDIRECT`: controls server caching of redirects
* `CACHE_CLIENT_REDIRECT`: controls client caching of redirects
* `REDIRECT_FASTPATH`: controls if redirects should be resolved
  to the contents of the Location URL (if already cached)
  • Loading branch information
esroyo committed Apr 25, 2024
1 parent c178e97 commit b82b341
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 70 deletions.
2 changes: 2 additions & 0 deletions .env.defaults
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
UPSTREAM_ORIGIN=https://esm.sh
BASE_PATH=/
CACHE=false
CACHE_REDIRECT=600
CACHE_CLIENT_REDIRECT=600
HOMEPAGE=https://github.com/esroyo/systemjs.sh
OUTPUT_BANNER=/* systemjs.sh */
REDIRECT_FASTPATH=true
WORKER_ENABLE=false
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
UPSTREAM_ORIGIN=https://esm.sh
BASE_PATH=/
CACHE=true
CACHE_REDIRECT=600
CACHE_CLIENT_REDIRECT=600
HOMEPAGE=https://github.com/esroyo/systemjs.sh
REDIRECT_FASTPATH=true
OUTPUT_BANNER=/* Systemjs output */
Loading

0 comments on commit b82b341

Please sign in to comment.