Needed advice on how to implement js/css versioning

后端 未结 2 1453
滥情空心
滥情空心 2021-01-14 08:34

so I am implementing this js/css versioning scheme, where I basically append a checksum of the js/css file. The strategy which I am thinking of is, basically get this check

2条回答
  •  失恋的感觉
    2021-01-14 08:42

    Tomasz hit the nail on the head ... except there's an even easier solution :-) Don't change the file name of your files at all; just change the link to them, specifically the "search" part. And you don't really need a checksum, you can also use an incrementing number or the current revision number in your source control system

    So in other words:

    
    
                                     
                  
提交回复
热议问题