ajaxSetup is global.

A solution with less potential side-effects would just use $.ajax
directly, specifying the cache option along with url, dataType and
success:

$.ajax({
        cache: true,
        dataType: "json"
        url: "something.js"
        success: callbackFunc
});

>From the code it looks like the documentation is wrong: The default
for the cache option is false. Can someone confirm that?

Jörn

On Thu, May 15, 2008 at 12:16 AM, Bil Corry <[EMAIL PROTECTED]> wrote:
>
> Karl Rudd wrote on 5/14/2008 5:00 PM:
>>
>>  jQuery.ajaxSetup({ cache: true });
>
> Does setting the cache option affect all subsequent XHR requests (or just
> the immediate one)?  And is the entire effect of setting cache to "true"
> that the random value is no longer appended to the URL?
>
>
> - Bil
>
>

Reply via email to