开发者

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

开发者 https://www.devze.com 2023-02-06 21:37 出处:网络
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

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

精彩评论

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