how to disable tomcat caching? I use this -
<Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1">
in Tomcat/conf/context.xml
but it not helps
how to disable tomcat caching? I use this -
<Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1">
in Tomcat/conf/context.xml
but it not helps
Put below code in your sever.xml file.
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
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 :
On the same topic :
Actual problem is
antiResourceLocking="true"
.Looks like there is a conflict with
cachingAllowed="false"
.cachingAllowed did not help. I resolved this by modifying :
which is the cached file of context.xml