From 4d022a224726aeaa7afc39b0b495a3dff821bf8b Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 6 Sep 2022 14:35:13 +0530 Subject: [PATCH] handle more cases for the cache-control header in NGINX --- docs/example.nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/example.nginx.conf b/docs/example.nginx.conf index 5c0bef47d..82303be86 100644 --- a/docs/example.nginx.conf +++ b/docs/example.nginx.conf @@ -87,7 +87,7 @@ server { if ($args ~ ver=) { set $cacheControl max-age=31536000; } - if ($uri ~ ^/.*(\/|\.html)$) { + if ($uri ~ ^(\/|.*\/|.*\.html)$) { set $cacheControl no-cache; } # Will not set any header if it is emptystring