An organization deploys an Azure Content Delivery Network (CDN) endpoint to deliver static images for a web application. The application frequently appends version query strings to image URLs (e.g., `image.png?v=1.1` and `image.png?v=1.2`) to force updates. However, the CDN currently serves stale images by returning the cached version of `image.png` for all versioned requests.
Which query string caching setting should you configure on the Azure CDN endpoint to ensure that each unique version query string is cached and served as a separate asset?
- Cache every unique URLAnswer
- BIgnore query strings
- CBypass caching
- DUse dynamic site acceleration
Answer
Configure the Azure CDN endpoint query string caching behavior to 'Cache every unique URL'.
The correct setting is to cache every unique URL. This ensures that when a client requests an asset with a specific query string (such as `image.png?v=1.1`), the Azure CDN treats it as a unique asset and caches it separately from `image.png?v=1.2` or the base `image.png` URL.
Step-by-Step Solution
Key Concept
Azure CDN query string caching behavior determines how requests with query parameters are cached at edge nodes.
Estimated Time:45s