开发者

Caching Tomcat HttpClient testing

开发者 https://www.devze.com 2023-01-10 09:32 出处:网络
I\'m using HttpClient for testing and when I have been restarting/redeploying to Tomcat I have been getting some so开发者_开发问答rt of client side caching... For example I tried deleting my authentic

I'm using HttpClient for testing and when I have been restarting/redeploying to Tomcat I have been getting some so开发者_开发问答rt of client side caching... For example I tried deleting my authentication servlet and ran my tester class (which connects using HttpClient) and I get the same response over and over. I'm going crazy trying to figure out what exactly is happening here.


Please bear with me as I'm editing this on my mobile device.

In your META-INF/context.xml, add a PersistentManager with saveOnRestart set to false.

Example:

<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
       <Store className="org.apache.catalina.session.FileStore" />
</Manager>

PS If this didn't help you, try this example here.

0

精彩评论

暂无评论...
验证码 换一张
取 消