diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-06-17 20:59:13 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-06-17 20:59:13 +0300 |
| commit | f35998422d16e06b640907f7455b11c0e48a21b6 (patch) | |
| tree | a747bbe595aaf80ab84d8fe56767d050f0575352 | |
| parent | 9fa1ccdbe363673e8cf4a1ce43074b7e4c3cc2c9 (diff) | |
| download | the-epube-f35998422d16e06b640907f7455b11c0e48a21b6.tar.gz the-epube-f35998422d16e06b640907f7455b11c0e48a21b6.tar.xz | |
force-disable cache for worker
| -rw-r--r-- | .docker/web-nginx/nginx.conf | 9 |
1 files changed, 9 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; |
