jQuery bug – Ajax ‘no-cache’ parameter

In jQuery 1.2.1, when using the $.ajax function with cache: false, jQuery appends a parameter with the current timestamp to the URL. This parameter makes the URL unique and therefore prevents subsequent request from being retrieved from the browser cache.

However, the code that adds this ‘no-cache’ parameter does not check to see if it already exists and so under certain circumstances you can end up with URL’s that look like:


It certainly makes the URL unique 🙂

I opened a ticket and submitted a patch, which was quickly optimized by a jQuery developer, davidserduke.

It’s nice to see a project with responsive, helpful developers.

Scroll to Top