In an annotation-based Spring MVC controller, what is the preferred way to set cache headers for a specific path?
You could use a Handler Interceptor and use the postHandle method provided by it:
http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/web/servlet/HandlerInterceptor.html
postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
then just add a header as follows in the method:
response.setHeader("Cache-Control", "no-cache");