Tomcat can't see newly created static files and is server-side caching the old files

↘锁芯ラ 提交于 2019-11-29 11:12:15

The solution seems to be remove antiResourceLocking="true".

If anyone's more knowledgable about the topic, or know how to workaround it other way, I'll be grateful.

Tomcat 8 - disable caching of static resources:

context.xml

     <Resources cachingAllowed="false"/>

Finally the solution is to replace %TOMCATDIR%/conf/context.xml file content within :

<?xml version='1.0' encoding='utf-8'?>
<Context cachingAllowed="false" cacheMaxSize="1" cacheTTL="1">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!