Avoid back button after Spring login
1 answer
There is no direct function in spring, you can use interceptor
to do the job. like your servlet filters set the parameter cacheSeconds
to 0
<mvc:annotation-driven/>
<mvc:interceptors>
<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>
</mvc:interceptors>
that explains WebContentInterceptor
. and also great expansion here.
+1
source to share