From 8c980df660648f2c96008eb5809e1662a75c4afd Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 21 Oct 2020 13:11:29 +0530 Subject: [PATCH] tell clients not to cache their outer html --- docs/example.nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index 0c514e1ef..117eb2cc4 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -71,6 +71,9 @@ server { if ($args ~ ver=) { set $cacheControl max-age=31536000; } + if ($uri ~ ^/.*(\/|\.html)$) { + set $cacheControl no-cache; + } # Will not set any header if it is emptystring add_header Cache-Control $cacheControl;