about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-17 20:59:13 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-17 20:59:13 +0300
commitf35998422d16e06b640907f7455b11c0e48a21b6 (patch)
treea747bbe595aaf80ab84d8fe56767d050f0575352
parent9fa1ccdbe363673e8cf4a1ce43074b7e4c3cc2c9 (diff)
downloadthe-epube-f35998422d16e06b640907f7455b11c0e48a21b6.tar.gz
the-epube-f35998422d16e06b640907f7455b11c0e48a21b6.tar.xz
force-disable cache for worker
-rw-r--r--.docker/web-nginx/nginx.conf9
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;