org.riotfamily.website.interceptor
Class NoCacheHeaderInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.riotfamily.website.interceptor.NoCacheHeaderInterceptor
- All Implemented Interfaces:
- HandlerInterceptor
public class NoCacheHeaderInterceptor
- extends HandlerInterceptorAdapter
Sets cache control headers to prevent client side caching if a Riot user
is logged in. This is especially useful if the user modifies a page via
AJAX, leaves the page and hits the back button.
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoCacheHeaderInterceptor
public NoCacheHeaderInterceptor()
postHandle
public void postHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler,
ModelAndView modelAndView)
throws Exception
- Specified by:
postHandle
in interface HandlerInterceptor
- Overrides:
postHandle
in class HandlerInterceptorAdapter
- Throws:
Exception