How to generate the version number behind the js file?

There is a version number of v=123 behind the js file. Where is the generated v=123 controlled

such as:
<src=“[libs/lib-jitsi-meet.min.js?v=5056”>
v=5056

In the ci when building the packages.

Will the v=5056 change when Docker restart web container id is executed?

Do you want to execute in sequence?

1.docker strop web-container-id

2.docker start web-container-id

The problem I have now is that I have updated the css and js resources, but when the index.html page loads the resources, the version number behind the resources does not change.

Such as, always v=5056

IMO you should implement your own solution which updates this value when you need it. Updating this value although there is no change is not a good idea.

1 Like