[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: no_cache(1)
From:       John Dunlap <john () lariat ! co>
Date:       2015-09-09 19:41:38
Message-ID: CAC5eUStiC0xuF+st_9Tt0tL5N1mfyDvQtMwMjVMhyft-puCDhw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <mailmaster@web-ict.com>
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 <Michel.Jansen@web-ict.com>
> 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:*
*john@lariat.co <john@lariat.co>*

*Customer Service:*
877.268.6667
support@lariat.co

[Attachment #5 (text/html)]

<div dir="ltr"><div>Michel, if you go into your browser&#39;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&#39;re seeing something similar to the following:  \
</div><div><br></div><div>Cache-control:no-cache</div><div><br></div><div>then \
$r-&gt;no_cache(1) is working and the problem lies elsewhere in your \
application.</div><div><br></div><div>Cheers!</div><div>John</div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 4:39 PM, \
Michel Jansen <span dir="ltr">&lt;<a href="mailto:mailmaster@web-ict.com" \
target="_blank">mailmaster@web-ict.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="auto"><div><br></div><div>Hi \
Paul,</div><div><br></div><div>You wrote:<br></div><blockquote type="cite"><div><div \
dir="ltr">Helle Michel,<span class=""><div><br></div><div>Are you calling \
$r-&gt;no_cache before any response data has been sent?   \
</div></span></div></div></blockquote><div><br></div>Yes. Before setting the content \
type to text/html.<div><span class=""><br><blockquote type="cite"><div><div \
dir="ltr"><div>When you say the browser receives a &#39;0&#39; in the response, what \
do you mean exactly?</div></div></div></blockquote><div><br></div></span>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.</div><div><br></div><div>Do \
i make sense ?</div><span class=""><div><br><blockquote type="cite"><div><div \
dir="ltr"><div><br></div><div>Thanks,<br><br>Paul</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 4:15 PM, \
Michel Jansen <span dir="ltr">&lt;<a href="mailto:Michel.Jansen@web-ict.com" \
target="_blank">Michel.Jansen@web-ict.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    
    <span>if i add $r-&gt;no_cache(1) to an ajax responder perl script
      the browser receives a 0 in the response, what am i doing wrong?</span>
    <div><br>
      <br>
      Regards,<br>
      <br>
      Michel<br>
    </div>
  </div>

</blockquote></div><br></div>
</div></blockquote></div></span></div></blockquote></div><br><br \
clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div \
style="font-size:small;font-family:arial"><span \
style="color:rgb(68,68,68);font-family:&#39;trebuchet \
ms&#39;,sans-serif;font-size:large">John Dunlap</span><br></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal">CTO |  \
</span><span style="font-family:tahoma,sans-serif;font-style:normal"><font \
color="#ff9900">Lariat</font></span><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal">  \
</span></i><br></div><div style="font-size:small;font-family:arial"><i \
style="font-family:&#39;trebuchet ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><br></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><b>Direct:</b></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><a \
href="mailto:john@lariat.co" style="color:rgb(17,85,204)" \
target="_blank">john@lariat.co</a></span></i></div><div \
style="font-size:small;font-family:arial"><i style="font-family:&#39;trebuchet \
ms&#39;,sans-serif"><span \
style="color:rgb(153,153,153);font-family:tahoma,sans-serif;font-style:normal"><br><b>Customer \
Service:</b></span></i></div><div style="font-size:small;font-family:arial"><span \
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif"><a \
value="+18772686667" style="color:rgb(17,85,204)">877.268.6667</a></span></div><div \
style="font-size:small;font-family:arial"><span \
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif"><a \
href="mailto:support@lariat.co" style="color:rgb(17,85,204)" \
target="_blank">support@lariat.co</a></span></div><div \
style="font-size:small;font-family:arial"><img \
src="cid:ii_hwm90qu91_146b4d583171a8e6" width="100" height="60"></div></div></div> \
</div></div>

--047d7b4727b0ccd39b051f55ab4d--


["100x60.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic