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");
    }
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.
support/cas-server-support-actions-core/src/main/java/org/apereo/cas/web/flow/logout/AbstractLogoutAction.java