From 3fc51f282096c77c6c781ffdc757424dce392406 Mon Sep 17 00:00:00 2001 From: thiagodallacqua-hpe <104855841+thiagodallacqua-hpe@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:53:02 -0300 Subject: [PATCH] feat: update the regex to match the new build output format (#6163) --- master/internal/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/internal/core.go b/master/internal/core.go index 75a1730c33c1..573b7be1afad 100644 --- a/master/internal/core.go +++ b/master/internal/core.go @@ -1113,7 +1113,7 @@ func (m *Master) Run(ctx context.Context) error { // Files that receive a unique hash when bundled and deployed can be cached forever // Other static files should only be cached for a short period of time - cacheFileLongTerm := regexp.MustCompile(`.(chunk\.(css|js)|woff2|woff)$`) + cacheFileLongTerm := regexp.MustCompile(`(-[0-9a-z]{1,}\.(js|css))$|(woff2|woff)$`) cacheFileShortTerm := regexp.MustCompile(`.(antd.\S+(.css)|ico|png|jpe*g|gif|svg)$`) if cacheFileLongTerm.MatchString(requestedFile) {