From a3199ff716124d7fc8bae456cbd186f8d500d9ea Mon Sep 17 00:00:00 2001 From: thinkgem Date: Tue, 10 Jan 2023 12:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20web.staticCachePeriod=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/core/src/main/resources/config/jeesite-core.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index 4a75aac4..38b653a9 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -607,6 +607,9 @@ web: # 静态文件后缀,过滤静态文件,以提高访问性能。 staticFile: .css,.js,.map,.png,.jpg,.gif,.jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk,.otf,.eot,.svg,.ttf,.woff,.woff2 + + # 静态资源缓存周期 Cache-Control,单位秒,1年 + staticCachePeriod: 31536000 # 静态文件后缀,排除的url路径,指定哪些uri路径不进行静态文件过滤。 staticFileExcludeUri: /druid/