开发者

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

开发者 https://www.devze.com 2023-01-24 16:41 出处:网络
This question already has answ开发者_运维百科ers here: Css file caching (5 answers) Closed 9 years ago.
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

精彩评论

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