backbone.js fetch results cached

后端 未结 4 1700
被撕碎了的回忆
被撕碎了的回忆 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 03:24

    Another solution is to prevent caching on the server side with HTTP headers

    in php

    
    

    or something like this in node.js with express and coffeescript

    res.send results,
      "Cache-Control": "no-cache, must-revalidate"
      "Expires": "Sat, 26 Jul 1997 05:00:00 GMT"
    

提交回复
热议问题