Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable tomcat caching?

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

like image 976
Ivan Avatar asked Sep 18 '10 19:09

Ivan


People also ask

How do I stop Tomcat from caching?

xml you can change the value of cachingAllowed by removing the flag. Remember to delete the cache folder after that. Apache Tomcat Configuration Reference.

Does Tomcat have a cache?

Caching helps when you want to leverage files not being downloaded each time and serve it from cache.


2 Answers

Actual problem is antiResourceLocking="true".

Looks like there is a conflict with cachingAllowed="false".

like image 100
Ivan Avatar answered Oct 05 '22 16:10

Ivan


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.
like image 30
Colin Hebert Avatar answered Oct 05 '22 15:10

Colin Hebert