Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Ajax.Request not sending request to server in IE8, but processing continues with stale/cached response
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brad Whitaker  
View profile  
 More options Nov 3, 3:46 pm
From: Brad Whitaker <b...@agilemark.com>
Date: Tue, 3 Nov 2009 12:46:07 -0800 (PST)
Local: Tues, Nov 3 2009 3:46 pm
Subject: Ajax.Request not sending request to server in IE8, but processing continues with stale/cached response
I'm having a problem with Ajax.Request in IE8 that I can't understand.
My code is working fine in other browsers. If I use the IE8 menu to
clear the browser cache to my domain then my next Ajax.Request() works
properly. But when Ajax.Request is invoked again this problem arises:
1) no request is actually sent to my server; 2) processing continues
normally but the content I see is from the previous request (in other
words, it is old content).

Any suggestions about how I might resolve this issue would be greatly
appreciated. onSuccess and onComplete are both being invoked even when
the server request is not issued. (In case additional details are
helpful: I'm invoking Ajax.Request() from within Prototype-UI
window.js setAjaxContent() function, and the content is used to fully
populate a modal window).

Thanks,

Brad


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
T.J. Crowder  
View profile  
 More options Nov 6, 8:43 am
From: "T.J. Crowder" <t...@crowdersoftware.com>
Date: Fri, 6 Nov 2009 05:43:21 -0800 (PST)
Local: Fri, Nov 6 2009 8:43 am
Subject: Re: Ajax.Request not sending request to server in IE8, but processing continues with stale/cached response
Hi Brad,

Can you produce a minimalist, self-contained example[1] demonstrating
the problem?  It sounds a bit like an IE8 issue, as I thought all XHR
requests were supposed to bypass local cache, but perhaps I'm wrong
about that.

Are you sure you're setting the cachability of the result correctly?
E.g., that it should not be cached?  (This would be in the headers of
the result.)  You might want to check your cache-control headers.

In the worst case (and this really should be a last resort), you
should be able to defeat caching by adding a query parameter that's
constantly changing, e.g.:

    new Ajax.Request(url + "?foo=" + (new Date().getTime()), ...);

[1] http://proto-scripty.wikidot.com/self-contained-test-page

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com

On Nov 3, 8:46 pm, Brad Whitaker <b...@agilemark.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Whitaker  
View profile  
 More options Nov 6, 6:02 pm
From: Brad Whitaker <b...@agilemark.com>
Date: Fri, 06 Nov 2009 15:02:04 -0800
Local: Fri, Nov 6 2009 6:02 pm
Subject: Re: [Proto-Scripty] Re: Ajax.Request not sending request to server in IE8, but processing continues with stale/cached response

T.J.,

Thank you very much for the response. The problem is reproducible in my
development environment where I verified using Firebug that no Expires
header is set on the Ajax response.

I tried your "last resort" suggestion and the problem goes away. (I know
it is a hack but I'm going to deploy it because I need a quick fix).

I'll see if I can produce and submit a minimalist example that
reproduces the problem.

Thanks,

Brad


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex McAuley  
View profile  
 More options Nov 7, 5:35 am
From: "Alex McAuley" <webmas...@thecarmarketplace.com>
Date: Sat, 7 Nov 2009 10:35:15 -0000
Local: Sat, Nov 7 2009 5:35 am
Subject: Re: [Proto-Scripty] Re: Ajax.Request not sending request to server in IE8, but processing continues with stale/cached response

IE and a couple of other browsers cache get requests...

If you want to fix it either use TJ's suggestion or use post and not get

Alex Mcauley
http://www.thevacancymarket.com


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google