增加Tomcat静态资源缓存

<Context>

    <!-- Default set of monitored resources. If one of these changes, the    -->
    <!-- web application will be reloaded.                                   -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
    <Resources cachingAllowed="true" cacheMaxSize="160000" ></Resources>
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->
</Context>
<Resources cachingAllowed="true" cacheMaxSize="160000" ></Resources>
单位kb
posted @ 2019-07-02 00:28  Angry-rookie  阅读(1399)  评论(0)    收藏  举报