Yii2 Assets Problems with Docker Swarm

There is such a case. User has a page open that has a modal form. I’m building a new docker-php image and updating the server. If the user doesn’t refresh the page and opens a modal window, and then sends a request to the server, then it will send two requests. Why? Because the page will simultaneously load old assets and new ones that were received by the AJAX request.

Is it possible to solve this problem without crutches?