how to disable tomcat caching? I use this -
<Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cac开发者_开发知识库heMaxSize ="0" cacheTTL="1">
in Tomcat/conf/context.xml
but it not helps
Actual problem is  antiResourceLocking="true". 
Looks like there is a conflict with cachingAllowed="false".
I'm not sure what you're using, but in context.xml you can change the value of cachingAllowed by removing the flag.
Remember to delete the cache folder after that.
Resources :
- Apache Tomcat Configuration Reference
On the same topic :
- How do I disable tomcat caching? I'm having weird static file problems.
cachingAllowed did not help. I resolved this by modifying :
    $CATALINA_HOME/conf/Catalina/localhost/thewebapp.xml
which is the cached file of context.xml
Put below code in your sever.xml file.
<Context className="org.apache.catalina.core.StandardContext"
             cachingAllowed="false"
             charsetMapperClass="org.apache.catalina.util.CharsetMapper"
             cookies="true" 
             reloadable="false" 
             wrapperClass="org.apache.catalina.core.StandardWrapper">
    </Context>
Make sure to delete all data from /work/Catalina/localhost directory before restarting tomcat. Also clear your browser cache.
Its a good practice to disable browser caching while your app is in development. This post may help Disabling Chrome cache for website development
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论