From 24c5514deee0dd6211eb4fab8d89866b88404f76 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 8 Apr 2022 14:41:29 +0300 Subject: [PATCH] nginx.conf: kill cache for html type --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index 8134407..e8b9b0b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -16,6 +16,13 @@ server { } location / { + # kill cache + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache'; + if_modified_since off; + expires off; + etag off; + index index.html index.htm; try_files $uri $uri/ /index.html =404; }