From 2aa0585e0910b9955d5f68c397f0a7ea1c05e083 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 9 Dec 2022 15:08:27 +0300 Subject: [PATCH] nginx: kill cache --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index bb236f9..fe7dc6c 100644 --- a/nginx.conf +++ b/nginx.conf @@ -28,6 +28,13 @@ server { location / { auth_request /auth; + # kill cache + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache'; + if_modified_since off; + expires off; + etag off; + root /usr/share/nginx/html; try_files $uri $uri/ /index.html =404; }