code: protected void preventCaching(final HttpServletResponse response) {
          response.setHeader("Pragma", NO_CACHE);
          response.setDateHeader("Expires", 1L);
          response.setHeader(CACHE_CONTROL, NO_CACHE);
          response.addHeader(CACHE_CONTROL, "no-store");
      }
docs: Prevent caching by adding the appropriate headers.
  Copied from the {@code preventCaching} method in the
  {@link org.springframework.web.servlet.support.WebContentGenerator} class.
  
  @param response the HTTP response.