如何在Spring MVC中强制缓存清除

时间:2014-02-12 08:39:53

标签: java spring-mvc

我正在使用以下拦截器来禁用浏览器缓存

<bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor">
          <property name="cacheSeconds" value="0"/>
          <property name="useExpiresHeader" value="true"/>
          <property name="useCacheControlHeader" value="true"/>
          <property name="useCacheControlNoStore" value="true"/>
</bean>   

在Chrome和Firefox上运行正常,但在退出后单击浏览器后退按钮时,Safari仍会显示页面。

任何其他解决野生动物园的方法?

0 个答案:

没有答案