[MarkLogic Dev General] Needing to wait for document update
Mary Holstege
mary.holstege at marklogic.com
Fri Nov 30 08:21:24 PST 2007
On Fri, 30 Nov 2007 02:07:14 -0800, Neil Bradley <neil at bradley.co.uk>
wrote:
> Dom,
>
> I am beginning to think that you are right. I tried using Firefox and
> never
> see the problem using that browser, so this is an IE problem. However, I
> tried:
>
> xdmp:add-response-header("Pragma", "No-Cache")
> ,
> xdmp:redirect-response( concat("ControlPanel.xqy?MODE=QUERY&WHICHQUERY=",
> $WHICHQUERY) )
>
> but that did not help with IE's intermittent refusal to update the page.
> Does add-response-header actually work in conjunction with
> redirect-response?
>
> Neil.
I think you need to put the add-response-header into the query you are
redirecting _to_.
//Mary
>
> -----Original Message-----
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of Dominic
> Mitchell
> Sent: 30 November 2007 09:51
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Needing to wait for document update
>
> Neil Bradley wrote:
>> In any case, the page redirected to has the following the <head> tag to
>> prevent such problems:
>>
>> <meta http-equiv="Expires" content="-1" />
>> <meta http-equiv="Pragma" content="no-cache"/>
>> <meta http-equiv="Cache-Control" content="no-cache"/>
>
> I would not tend to rely on these. It's better to explicitly set the
> HTTP headers.
>
> -Dom
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general
More information about the General
mailing list