From 43bbf96024cac678d39cb969c97da328784006c0 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Fri, 31 Mar 2006 22:23:18 +0000 Subject: [PATCH] anti-ie defensive anti-caching --- src/xml-rpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xml-rpc.c b/src/xml-rpc.c index 5d37285f..dfb288fc 100644 --- a/src/xml-rpc.c +++ b/src/xml-rpc.c @@ -64,6 +64,10 @@ XMLSTRUCT *xml_init(WS_CONNINFO *pwsc, int emit_header) { pxml->pwsc = pwsc; + /* the world would be a wonderful place without ie */ + ws_addresponseheader(pwsc,"Cache-Control","no-cache"); + ws_addresponseheader(pwsc,"Expires","-1"); + if(emit_header) { ws_addresponseheader(pwsc,"Content-Type","text/xml; charset=utf-8"); ws_writefd(pwsc,"HTTP/1.0 200 OK\r\n");