From aff1fe79b12e5244b94f1a85c450f11fac8d4fc9 Mon Sep 17 00:00:00 2001 From: Neo Date: Sat, 13 Feb 2021 17:44:31 +0100 Subject: [PATCH] templator cache 404 1m --- Class/templator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Class/templator.py b/Class/templator.py index ad88eb2..c910030 100644 --- a/Class/templator.py +++ b/Class/templator.py @@ -37,6 +37,7 @@ def nginxHTTPS(self,domain,target): location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|woff2|svg)$ { proxy_cache STATIC; proxy_cache_valid 200 1d; + proxy_cache_valid 404 1m; proxy_set_header Host '''+target+'''; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;