From d4ddffe1eb180b6731d0166283189eedff2d0ab4 Mon Sep 17 00:00:00 2001 From: Juan Broullon Date: Fri, 21 Mar 2025 18:06:09 +0100 Subject: [PATCH] fix: nginx not caching static resources (#254) The current nginx config isn't caching any images given they're not being served under the `/static/` path. --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 703198e76..e1c3e4e47 100644 --- a/nginx.conf +++ b/nginx.conf @@ -43,7 +43,7 @@ server { error_log /var/log/nginx/error.log; # Static file handling with proper MIME types and consistent caching - location ~* ^/static/(.*)$ { + location ~* \.(jpg|jpeg|png|gif|ico|svg|webp|woff|woff2|ttf|eot)$ { proxy_pass http://127.0.0.1:3000; # Include MIME types