【发布时间】:2013-05-17 08:01:41
【问题描述】:
app.get('/my_profile_picture', function(req,res){
getPicture(req.user.id, function(url){
res.redirect(url);
});
});
这是我的代码。但是,当用户更改他的个人资料图片时,浏览器仍会转到旧图片的 URL。这是因为浏览器缓存了“重定向”或其他东西。
如何更改 Express 中的响应,以便完全没有缓存?
【问题讨论】:
-
另请参阅How to force Chrome NOT to cache redirects? - 目前未答复。
标签: node.js http caching express