Hi @Vasily Kornienko
I have reviewed your scenario and tested the requirement in my lab.
I created an App Service with different versions in the application and attached it to Front Door. It is working as expected, fetching from the origin on the first request and serving from the cache within a minute in my case.
Route configuration
Orgingroup
Optimization
Optimization
When I change the configuration in the application, such as updating the version, Front Door requests the origin and displays the result with the new version. However, from the next request onward, it serves the response from the cache.
Below is the the Cache report result
Kindly clear the cache and cookies and test again. If the issue persists, try testing in another browser.
The default behavior of Azure Front Door is to treat it as a new asset if the URL changes within a short period of time.
Reference: Query string behavior
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.