01: package com.icesoft.faces.webapp.http.common.standard;
02:
03: import com.icesoft.faces.webapp.http.common.Response;
04:
05: public abstract class FixedXMLContentHandler extends
06: FixedSizeContentHandler {
07:
08: protected FixedXMLContentHandler() {
09: super ("text/xml", "UTF-8");
10: }
11:
12: public void respond(Response response) throws Exception {
13: response.setHeader("Cache-Control", new String[] { "no-cache",
14: "no-store", "must-revalidate" });//HTTP 1.1
15: response.setHeader("Pragma", "no-cache");//HTTP 1.0
16: response.setHeader("Expires", 0);//prevents proxy caching
17: super.respond(response);
18: }
19: }
|