Chrome is caching an HTTP PUT request Chrome is caching an HTTP PUT request google-chrome google-chrome

Chrome is caching an HTTP PUT request


I use extra parameter to avoid caching:

url += '?_dc=' + Math.random().toFixed(20).replace('.', '');

I don't interpret this parameter on server side.

EDIT: Besides of chrome there are a lot things could cache requests - user's proxy server for instance. I think additional query parameter is a good solution to keep out of caching.


Backbone use jQuery or Zepto to make the AJAX request. Assuming that you are using jQuery, set the cache off.

Run this to set the cache off in the overall application so you will not need to worry about cache:

$.ajaxSetup({      cache : false});

If keep the cache on is important for your business, I think that you could do something like this for specific no cache calls:

model.save({}, {cache:false});