From b9b40ae9041466c5db98e3c031855f34b667590c Mon Sep 17 00:00:00 2001 From: sesh Date: Sun, 10 May 2026 23:14:21 +0200 Subject: [PATCH] wpad.dat per no-cache auslliefern --- wpad/nginx.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wpad/nginx.conf b/wpad/nginx.conf index c39665c..008a7ea 100644 --- a/wpad/nginx.conf +++ b/wpad/nginx.conf @@ -1,13 +1,18 @@ server { listen 80; server_name wpad wpad.lan wpad.kernel.rip; - + + # PAC frisch halten - Browser sollen bei jedem Hit nachschauen + add_header Cache-Control "no-cache, must-revalidate" always; + add_header Pragma "no-cache" always; + expires 0; + location /wpad.dat { root /var/www/wpad; types { } default_type application/x-ns-proxy-autoconfig; } - + # WPAD spec wants both /wpad.dat and /proxy.pac available location /proxy.pac { alias /var/www/wpad/wpad.dat; @@ -15,3 +20,4 @@ server { default_type application/x-ns-proxy-autoconfig; } } + \ No newline at end of file