This article mainly introduces how to use php scripts to add version numbers to the js and css paths referenced in html. the advantage of using the version number is that it can solve the problem of real-time update of external application files, let's take a look at the full text and search for keywords in the search engine. htaccess cache, you can find a lot of tutorials on setting website file cache. through setting, you can cache infrequently updated files such as css and js on the browser side, in this way, every time a visitor accesses your website, the browser can obtain css and js from the browser's cache without reading from your server, in this way, the website opening speed is accelerated to a certain extent, and the traffic on your servers can be saved.
I will not talk about the specific text description. I will explain it to you through code examples below.
For example