码迷,mamicode.com
首页 > 其他好文 > 详细

304 not modified 缓存问题解决

时间:2017-04-01 12:21:53      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:示例   date()   string   this   时间   nbsp   时间戳   get   bsp   

解决这种问题方法很简单,只需在url后面拼接一个时间戳就行了。示例代码如下:

this.$http.get(./api/ratings?t=+ (new Date()).getTime().toString())

 

304 not modified 缓存问题解决

标签:示例   date()   string   this   时间   nbsp   时间戳   get   bsp   

原文地址:http://www.cnblogs.com/zhoujx1066/p/6655397.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!