Subversion Repositories SmartDukaan

Rev

Rev 3055 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3055 Rev 3056
Line 15... Line 15...
15
 
15
 
16
    public String intercept(ActionInvocation actionInvocation) throws Exception {
16
    public String intercept(ActionInvocation actionInvocation) throws Exception {
17
        HttpServletResponse response = ServletActionContext.getResponse();
17
        HttpServletResponse response = ServletActionContext.getResponse();
18
        long expiresTime = (new Date()).getTime() + SECONDS_IN_HOUR * 1000;
18
        long expiresTime = (new Date()).getTime() + SECONDS_IN_HOUR * 1000;
19
        response.setDateHeader("Expires", expiresTime);
19
        response.setDateHeader("Expires", expiresTime);
20
        response.setHeader("Cache-Control", "public");
20
        response.setHeader("Cache-Control", "private");
-
 
21
        response.setHeader("Pragma", "");
21
        return actionInvocation.invoke();
22
        return actionInvocation.invoke();
22
    }
23
    }
23
}
24
}
24
25