View | Details | Raw Unified | Return to bug 43687
Collapse All | Expand All

(-)FormAuthenticator.java (+4 lines)
Lines 313-318 Link Here
313
            context.getServletContext().getRequestDispatcher
313
            context.getServletContext().getRequestDispatcher
314
            (config.getLoginPage());
314
            (config.getLoginPage());
315
        try {
315
        try {
316
            // Disallow caching the login page as the actual page. BZ 43687
317
            response.addHeader("Cache-Control", "no-store");
316
            disp.forward(request.getRequest(), response.getResponse());
318
            disp.forward(request.getRequest(), response.getResponse());
317
            response.finishResponse();
319
            response.finishResponse();
318
        } catch (Throwable t) {
320
        } catch (Throwable t) {
Lines 334-339 Link Here
334
            context.getServletContext().getRequestDispatcher
336
            context.getServletContext().getRequestDispatcher
335
            (config.getErrorPage());
337
            (config.getErrorPage());
336
        try {
338
        try {
339
            // Disallow caching the error page as the actual page. BZ 43687
340
            response.addHeader("Cache-Control", "no-store");
337
            disp.forward(request.getRequest(), response.getResponse());
341
            disp.forward(request.getRequest(), response.getResponse());
338
        } catch (Throwable t) {
342
        } catch (Throwable t) {
339
            log.warn("Unexpected error forwarding to error page", t);
343
            log.warn("Unexpected error forwarding to error page", t);

Return to bug 43687