How to prevent users from accessing the cache when the front-end file is updated to the server

Today, the file format generated after the front-end file is updated to online build compilation is as follows

clipboard.png

I delete the online ones and then upload them.
Open the mobile phone to visit the website and find that the last version of the js file you read is still unable to load because I deleted it.
how to prevent users from reading the cache every time the version is updated?


has cache because the cache generated by index.html is not the cache generated by these js files. When requesting index.html, a hash value is added to solve


or configure in nginx without caching

  

request with timestamp

Menu