From e54a4807f70bc333396885f81d3dcc7ae6c115d9 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Fri, 16 Apr 2021 18:09:30 +0200 Subject: [PATCH] NGINX cache assets --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index c179d487..2cba2098 100644 --- a/nginx.conf +++ b/nginx.conf @@ -6,6 +6,11 @@ http { server { error_page 404 /index.html; root /usr/share/nginx/html; + location /assets { + expires 1y; + log_not_found off; + access_log off; + } location = /index.html { add_header Cache-Control 'no-store'; }