From 8d3270e4ad79548f8524e9985409771fc7979277 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Wed, 17 Jan 2024 20:38:47 +0530 Subject: [PATCH] perf: add Cache-Control header for assets closes https://github.com/frappe/bench/issues/1154 --- bench/config/templates/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/bench/config/templates/nginx.conf b/bench/config/templates/nginx.conf index 5cba57828..cd6a67014 100644 --- a/bench/config/templates/nginx.conf +++ b/bench/config/templates/nginx.conf @@ -58,6 +58,7 @@ server { location /assets { try_files $uri =404; + add_header Cache-Control "max-age=31536000"; } location ~ ^/protected/(.*) {