From a3e9361cab11ae3e40238fffb16630e6b603ae59 Mon Sep 17 00:00:00 2001 From: Chever John Date: Tue, 30 Jun 2026 02:52:32 +0800 Subject: [PATCH] fix: use expanded regex in nginx location for hashed assets Replace {8} quantifier with 8 repeated character classes for compatibility with nginx regex parsing. Co-Authored-By: Claude --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 095793d..1e5a5de 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,7 +38,7 @@ server { } # Hashed static assets — long-term cache is safe - location ~* \.[0-9a-f]{8}\.(js|css)$ { + location ~* \.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]\.(js|css)$ { expires 30d; add_header Cache-Control "public, immutable"; }