A developer is configuring an Azure CDN endpoint to distribute web pages for an online learning portal. The portal loads different course pages using a query string, such as `courses.html?courseid=42`. The developer must ensure that the CDN caches a unique version of the page for each individual course ID. Which query string caching behavior should the developer configure on the endpoint?
- AIgnore query strings
- Cache every unique URLCevap
- CBypass caching
- DNo caching
Cevap
The developer should configure the 'Cache every unique URL' query string caching behavior.
Configuring the CDN to 'Cache every unique URL' forces the CDN to treat each query string variation as a distinct resource. This ensures that a unique version of the page is cached and served for each unique course ID.
Adım Adım Çözüm
Anahtar Kavram
Azure CDN query string caching behaviors allow developers to control how requests with query parameters are cached, ensuring dynamic content is either cached per query, bypassed, or cached uniformly.