01: package org.romaframework.aspect.view.echo2.util;
02:
03: import javax.servlet.http.HttpServletResponse;
04:
05: public class HttpUtils {
06: public static void noCache(HttpServletResponse iResponse) {
07: iResponse.setHeader("Pragma", "no-cache");
08: iResponse.addHeader("Cache-Control", "must-revalidate");
09: iResponse.addHeader("Cache-Control", "no-cache");
10: iResponse.addHeader("Cache-Control", "no-store");
11: iResponse.setDateHeader("Expires", 0);
12: }
13: }
|