开发者

Does appending myjsfile.js?2342343 always force the browser to get the new .js file?

Does appending myjsfile.js?2342343 always force the browser to get the开发者_开发技巧 new .js file?


It depends on the caching headers you send back with it. Without any Cache-Control or Expires headers, some browsers (e.g. IE) will treat the URL as always-stale, but this behavior is not guaranteed. On the other hand, if there are valid caching directives, browsers will respect them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜