This commit is contained in:
RedKale
2016-03-02 10:49:32 +08:00
parent 0f3abd440e
commit 20da9a1d41

View File

@@ -157,10 +157,10 @@
<resource-servlet webroot="root"> <resource-servlet webroot="root">
<!-- <!--
资源缓存的配置, 默认存在一个含默认属性的caches节点 资源缓存的配置, 默认存在一个含默认属性的caches节点
limit: 资源缓存最大容量, 默认: 128M, 为0表示不缓存 单位可以是B、K、M、G不区分大小写 limit: 资源缓存最大容量, 默认: 0, 为0表示不缓存 单位可以是B、K、M、G不区分大小写
lengthmax: 可缓存的文件大小上限, 默认: 1M超过1M的文件不会被缓存 lengthmax: 可缓存的文件大小上限, 默认: 1M超过1M的文件不会被缓存
--> -->
<caches limit="128M" lengthmax="1M" /> <caches limit="0M" lengthmax="1M" />
<!-- <!--
支持类似nginx中的rewrite 目前只支持静态资源对静态资源的跳转。 支持类似nginx中的rewrite 目前只支持静态资源对静态资源的跳转。
type: 匹配的类型, 目前只支持location(匹配requestURI), 默认: location type: 匹配的类型, 目前只支持location(匹配requestURI), 默认: location