From 64912b4b0fd5ba0d2e57cdf97f24ae1d62d48e23 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 20 Oct 2023 10:50:23 +0200 Subject: [PATCH] [enh] Cache control on mjs files --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index d2ba9b0..d8c5a82 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -118,7 +118,7 @@ location ^~ __PATH__/ { index index.php; } - location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ { + location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ { try_files $uri / __PATH__/index.php$request_uri; expires 6M; # Cache-Control policy borrowed from `.htaccess` access_log off; # Optional: Don't log access to assets