You are configuring an Azure CDN endpoint to distribute responses from a weather forecast API. The API serves localized forecast data based on geographic coordinates passed as query string parameters, such as `/forecast?lat=40.7128&lon=-74.0060`. You need to ensure that the CDN endpoint caches unique forecast data for each distinct coordinate combination while maximizing cache efficiency for the rest of the application. Which query string caching behavior should you select?
- Cache every unique URLCevap
- BIgnore query strings
- CBypass caching
- DDisable caching rules
Cevap
Cache every unique URL
Selecting the caching behavior that treats each unique URL as a separate asset ensures that coordinate-specific forecasts are correctly cached and served. This maintains caching benefits while preserving the localized functionality of the weather API.
Adım Adım Çözüm
Anahtar Kavram
Azure CDN Query String Caching Behaviors