This is already possible, though the documentation for it is a bit spread out.

You'll need to use:

  jQuery.ajaxSetup({ cache: true });
  jQuery.getScript('something.js', callbackFunc);

Documentation:

  http://docs.jquery.com/Ajax/jQuery.ajaxSetup
  http://docs.jquery.com/Ajax/jQuery.ajax (Options tab)

Karl Rudd

On Wed, May 14, 2008 at 11:50 PM, JoeM <[EMAIL PROTECTED]> wrote:
>
> I have noticed that the default behavior of  jquery's $.getScript is
> to add a cache busting parameter to the
> URL of the script - to assure the browser gets the latest copy.
>
> While this is great - and is a good default - I was struggling to see
> if there is any way to turn OFF the cache busting, for situations
> where in the Ap i really want the browser to use a cached version for
> performance and
> bandwidth reason - if it has one.
>
> If this is not possible - i'd like to suggest is as an enhacement to
> the API for a future release.
>
> many thanks!
>

Reply via email to