How to force the browser to reload cached CSS/JS files?

后端 未结 30 4368
青春惊慌失措
青春惊慌失措 2020-11-21 05:49

I have noticed that some browsers (in particular, Firefox and Opera) are very zealous in using cached copies of .css and .js files, even be

30条回答
  •  梦毁少年i
    2020-11-21 06:08

    For my development, I find that chrome has a great solution.

    https://developer.chrome.com/devtools/docs/tips-and-tricks#hard-reload

    With developer tools open, simply long click the refresh button and let go once you hover over "Empty Cache and Hard Reload".

    This is my best friend, and is a super light weight way to get what you want!

提交回复
热议问题