Re: no_cache(1)

John Dunlap <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <CAC5eUStiC0xuF+st_9Tt0tL5N1mfyDvQtMwMjVMhyft-puCDhw@mail.gmail.com>
Michel, if you go into your browser's network debugging console(usually
CTRL+SHIFT+I in modern browsers) and look at the response headers for the
ajax request, do you see a cache-control header? If so, what does it say?
If you're seeing something similar to the following:

Cache-control:no-cache

then $r->no_cache(1) is working and the problem lies elsewhere in your
application.

Cheers!
John

On Mon, Sep 7, 2015 at 4:39 PM, Michel Jansen <[email protected]>
wrote:

>
> Hi Paul,
>
> You wrote:
>
> Helle Michel,
>
> Are you calling $r->no_cache before any response data has been sent?
>
>
> Yes. Before setting the content type to text/html.
>
> When you say the browser receives a '0' in the response, what do you mean
> exactly?
>
>
> My Ajax responder sends some fields separated by | which are being split
> and then distributed into a page. The 0 is received by the JavaScript which
> performes the Ajax request as first response and is then connected to the
> first field.
>
> Do i make sense ?
>
>
> Thanks,
>
> Paul
>
> On Mon, Sep 7, 2015 at 4:15 PM, Michel Jansen <[email protected]>
> wrote:
>
>> if i add $r->no_cache(1) to an ajax responder perl script the browser
>> receives a 0 in the response, what am i doing wrong?
>>
>>
>> Regards,
>>
>> Michel
>>
>
>


-- 
John Dunlap
*CTO | Lariat *

*Direct:*
*[email protected] <[email protected]>*

*Customer Service:*
877.268.6667
[email protected]
100x60.png (image/png, 2.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.