0

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?

zzzzBov
  • 167,057
  • 51
  • 314
  • 358
Anil Namde
  • 6,154
  • 9
  • 62
  • 99

1 Answers1

0

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

kobe
  • 15,239
  • 15
  • 61
  • 87
  • to make it even better , maintain the version no in a config file and just increment the no whenever there is change in the css or jss. – kobe Nov 09 '10 at 05:43