From 83eda3f251e471b99a9ecf454d360eda7c0d2e0f Mon Sep 17 00:00:00 2001 From: Felix Cornelissen Date: Tue, 26 Nov 2024 11:23:28 +0100 Subject: [PATCH] fix: vite assets met underscore ook lang cachen --- ODPC.Server/Config/StaticFileCacheHeaders.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ODPC.Server/Config/StaticFileCacheHeaders.cs b/ODPC.Server/Config/StaticFileCacheHeaders.cs index c6f20be..a673d20 100644 --- a/ODPC.Server/Config/StaticFileCacheHeaders.cs +++ b/ODPC.Server/Config/StaticFileCacheHeaders.cs @@ -41,6 +41,6 @@ private static void SetCacheHeaders(this StaticFileResponseContext ctx) } private static bool HasHash(this string fileName) => s_hashHashRegex.IsMatch(fileName); - [GeneratedRegex(@"^[\w]+-[a-zA-Z0-9]{8}\.[\w]+$")] + [GeneratedRegex(@"^[\w]+-[a-zA-Z0-9|-|_]{8}\.[\w]+$")] private static partial Regex HashRegex(); }