From 5e7fe309840e50f5f378ec59937126148b753bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 10 Feb 2023 10:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=AD=96=E7=95=A5=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=97=B6=E5=88=9B=E5=BB=BA=E7=9A=84=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E5=90=8D=E5=8F=98=E9=87=8F=E4=BD=BF=E7=94=A8${request?= =?UTF-8?q?PathLowerExtension}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/http_cache_policy_dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/models/http_cache_policy_dao.go b/internal/db/models/http_cache_policy_dao.go index 5a0c0840..90bf2b84 100644 --- a/internal/db/models/http_cache_policy_dao.go +++ b/internal/db/models/http_cache_policy_dao.go @@ -129,7 +129,7 @@ func (this *HTTPCachePolicyDAO) CreateCachePolicy(tx *dbs.Tx, isOn bool, name st SimpleCond: &shared.HTTPRequestCond{ Type: "url-extension", IsRequest: true, - Param: "${requestPathExtension}", + Param: "${requestPathLowerExtension}", Operator: shared.RequestCondOperatorIn, Value: `[".html", ".js", ".css", ".gif", ".png", ".bmp", ".jpeg", ".jpg", ".webp", ".ico", ".pdf", ".ttf", ".eot", ".tiff", ".svg", ".svgz", ".eps", ".woff", ".otf", ".woff2", ".tif", ".csv", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".wav", ".mp3", ".mp4", ".ogg", ".mid", ".midi"]`, },