开发者

How to make sure CSS/JS files are not cached on browser? [duplicate]

This question already has answ开发者_运维百科ers here: Css file caching (5 answers) Closed 9 years ago.

How do i make sure that for particular ASP.NET page CSS/JS file will not be cached on browser side (each time its loaded from server)? Anything that can be done using the server side code?


We can use cliend side version no

 www.yourwebsite.com/global.js?v=1

you can keep change the version no whenever there is change in the javascript file

so the request always gets the new file from the webserver

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜