From 250dd0c92d04d10b21e616e56f5d48cbd7d6d934 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Fri, 13 Nov 2020 21:32:10 +0800 Subject: [PATCH] no cache for *.json --- etc/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/nginx.conf b/etc/nginx.conf index d8099f27..bb15e3f1 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -107,7 +107,7 @@ http { try_files $uri /layout/index.html; } - location ~ .*(.htm|.html|manifest.json)$ { + location ~ .*(.htm|.html|.json)$ { add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"; }