Visual Studio Development Server not updating css and javascript?

后端 未结 4 1169
悲哀的现实
悲哀的现实 2020-12-09 08:46

I\'ve recently returned to a web site project that has been on the backburner. Since recommencing work I\'ve noticed css and javascript changes aren\'t being recognised by

4条回答
  •  时光取名叫无心
    2020-12-09 09:25

    A quick way is to add random parameters after the script or css file's src attribute. for example

    
    

    so browser will always assume its a new file and will not cache.

    Be sure to remove this when deploying on live server.

提交回复
热议问题