diff options
| author | fox <fox@fakecake.org> | 2026-06-17 21:02:05 +0300 |
|---|---|---|
| committer | fox <fox@fakecake.org> | 2026-06-17 21:02:05 +0300 |
| commit | 231ad1aea3bfb06dbbe1f3e0d99f83f9c0320124 (patch) | |
| tree | a747bbe595aaf80ab84d8fe56767d050f0575352 | |
| parent | b5c9444b9aa83e14b686d2e4192ae4d3e245905f (diff) | |
| parent | f35998422d16e06b640907f7455b11c0e48a21b6 (diff) | |
| download | the-epube-231ad1aea3bfb06dbbe1f3e0d99f83f9c0320124.tar.gz the-epube-231ad1aea3bfb06dbbe1f3e0d99f83f9c0320124.tar.xz | |
Merge branch 'dev' into 'master'
one more type hint See merge request git/the-epube!59
| -rw-r--r-- | .docker/web-nginx/nginx.conf | 9 | ||||
| -rw-r--r-- | src/app.js | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.docker/web-nginx/nginx.conf b/.docker/web-nginx/nginx.conf index 8fb8ce2..1115616 100644 --- a/.docker/web-nginx/nginx.conf +++ b/.docker/web-nginx/nginx.conf @@ -39,6 +39,15 @@ http { return 301 $base_path/index.html; } + location ~ ^${APP_BASE}/worker\.js$ { + add_header Cache-Control "no-cache, no-store, must-revalidate"; + add_header Pragma "no-cache"; + add_header Expires "0"; + + # Optional: ensure it serves with correct javascript mime-type + default_type application/javascript; + } + # pagination may be quite large client_max_body_size 0; diff --git a/src/app.js b/src/app.js index faf51d0..24f5b8d 100644 --- a/src/app.js +++ b/src/app.js @@ -30,6 +30,9 @@ class Cookie { return ""; } + /** + * @param {string} name + */ static delete(name) { const expires = "expires=Thu, 01-Jan-1970 00:00:01 GMT"; document.cookie = name + "=; " + expires; |
