Bug Tracker

Opened 12 years ago

Closed 11 years ago

Last modified 8 years ago

#1849 closed enhancement (invalid)

Ajax functions problems with caching in IE

Reported by: timothyfarrar@… Owned by:
Priority: minor Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:

Description

Here is an idea for a feature I think should be included in jQuery. When I do an AJAX request in IE, I am having problems with IE caching that request. I fixed this by passing a no-Cache variable, and passing a new date with each request. It would be great if jQuery had this as an optional feature with their ajax requests, so you could specify if you wanted jQuery to send a noCache variable with a request. This would be alot easier for the end developer who could enable/disable this as an argument either way based on whichever was set as the default.

Please consider, and contact me with any thoughts and or questions.

Thankyou,

Timothy Farrar

timothyfarrar@…

Change History (4)

comment:1 Changed 12 years ago by emartin24

Timothy,

The $.ajax function has a cache option: http://docs.jquery.com/Ajax/jQuery.ajax#options

When building your ajax call, just add cache: false to the options.

Is that what you are looking for?

comment:2 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

Just use cache : false in the options.

comment:3 Changed 9 years ago by Romain

The cash option from jQuery does NOT work with I.E.

comment:4 Changed 9 years ago by anonymous

"cache: false" seems to cause issues when using windows gadgets and IE8 is installed. It's as if the request fails to complete.

Note: See TracTickets for help on using tickets.