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
  • 174,988
  • 54
  • 320
  • 367
Anil Namde
  • 6,452
  • 11
  • 63
  • 100

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,671
  • 15
  • 64
  • 91
  • 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