Created
May 17, 2013 06:56
-
-
Save jeevan-patil/5597391 to your computer and use it in GitHub Desktop.
Interceptor to add cache headers in http response.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans:beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:beans="http://www.springframework.org/schema/beans" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:mvc="http://www.springframework.org/schema/mvc" | |
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | |
<mvc:interceptors> | |
<beans:bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor"> | |
<beans:property name="cacheSeconds" value="0" /> | |
<beans:property name="useExpiresHeader" value="true" /> | |
<beans:property name="useCacheControlHeader" value="true" /> | |
<beans:property name="useCacheControlNoStore" value="true" /> | |
</beans:bean> | |
</mvc:interceptors> | |
</beans:beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment