Why adding version number to CSS file path?

前端 未结 6 1473
遇见更好的自我
遇见更好的自我 2020-11-29 02:06

I noticed some websites put the version numbers (especially) in the CSS file path. For example:



        
6条回答
  •  借酒劲吻你
    2020-11-29 02:49

    It's there to make sure that you have the current version. If you change your website and leave the name as before, browser may not notice the change and use old CSS from its cache. If you add version, the browser will download the new stylesheet.

提交回复
热议问题