Query string caching behavior "Use Query String" is being ignored in Azure Front Door

Vasily Kornienko 0 Reputation points
2025-03-07T10:09:04.94+00:00

We have an Front Door serving our main website and CDN for that website.

CDN endpoint uses main website as origin.

We want to serve all javascript and css files via CDN, we put file content hash to the url parameter in order to trigger cache update after each release.

We use "Use Query String" for "Query string caching behavior" option that should query origin server for the new file version if any url parameter (in our case hash value) is changed.

What is expected: after we release new website version with new css/js content all requests to the cdn version of the updated files should be update file versions on the CDN immediately (on first request with new hash in url parameter) due to "Use Query String" configuration.

Actual behavior: after we release new css/js content for existing files and querying these files with new hash values in url parameters Azure Front Door continues to return previous file versions for some times (several hours I guess).

This is totally inacceptable as most clients will cache previous file version for the new url with new hash value.

Please fix it ASAP or we'll have to move to other service providers.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
776 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.