solved.
those who might be interested in the solution, just add header in the
response object saying explicitly not to cache.
only for GET requests, response must have something like this:
<%
response.setHeader("CACHE-CONTROL", "NO-CACHE");
%>
hmm.. it might be a good suggestion for prototype to improve it a bit.
On May 25, 4:43 pm, "alex.laban"
<alex.la...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hello All!
>
> just started to use prototype - it''s outstanding masterpiece!
thank
> you all, who developed it!
>
> But since I tested my application with IE7 I noticed strange behavior
> - Ajax.Updater works only the first time and stops sending request
> afterwards.
>
> Here is the JS function, which I call from HTML <body
> onload="test();">
>
> test = function() {
> new Ajax.Updater(''datasetsContent'',
''faces/dataSets.jsp'',
> {
> method : ''get'',
> asynchronous : true
> });
>
> }
>
> The idea is that every time when page is reloaded I run some update.
> When IE7 just starts and loads the URL for the first time, request is
> sent. I monitored traffic with tcpmon, here is the list of requests
> being sent from client (IE7) to the server:
> GET /R2R/ HTTP/1.1
>
> GET /R2R/css/r2r.css HTTP/1.1
>
> GET /R2R/js/prototype.js HTTP/1.1
>
> GET /R2R/js/r2r.js HTTP/1.1
>
> GET /R2R/images/patroon.jpg HTTP/1.1
>
> GET /R2R/faces/dataSets.jsp HTTP/1.1
>
> After I hit "refresh" button, the list is smaller:
> GET /R2R/ HTTP/1.1
>
> GET /R2R/css/r2r.css HTTP/1.1
>
> GET /R2R/js/prototype.js HTTP/1.1
>
> GET /R2R/js/r2r.js HTTP/1.1
>
> GET /R2R/images/patroon.jpg HTTP/1.1
>
> I guess it has something to do with caching... but I asked browsers DO
> NOT CACHE ANYTHING:
> <meta http-equiv="Pragma" content="no-chache">
> <meta http-equiv="Cache-Control" content="no-store,
no-cache, must-
> revalidate">
> <meta http-equiv="Cache-Control" content="post-check=1,
pre-check=2">
> <meta http-equiv="Expires" content="-1">
>
> Please!!! Any ideas!!! Why prototype on IE7 issues GET request only
> once? How do I force this $beeep$ IE7 to work like all good browsers
> do??
>
> Kind regards,
> Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---