backbone.js fetch results cached

后端 未结 4 1697
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 02:39

I am using fetch in the index action of the following backbone.js controller:

App.Controllers.PlanMembers = Backbone.Controller.extend({
    routes: {
        \"         


        
4条回答
  •  后悔当初
    2021-01-31 02:58

    This is a problem on IE usually and backbone has nothing to do with it. You have to go down to the jQuery ajax call and look at the doc. Backbone uses jquery ajax for its sync method. You can do something like this to force ajax call on all browsers:

    $.ajaxSetup({ cache: false });
    

    http://api.jquery.com/jQuery.ajaxSetup/

提交回复
热议问题