Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to understand the caching behavior of Azure CDN/AFD.
First, we must understand how the "no-cache" directive works.
The
no-cache
response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse, even when the cache is disconnected from the origin server.
This does not mean the contents will not be cached to begin with.
Refer : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
Now,
- May I ask if you are using a CDN or Azure Front Door?
- If it's a CDN, which of the below are you using?
a. Azure CDN Standard from Microsoft b. Azure CDN Standard from Akamai c. Azure CDN Standard from Edgio (formerly Verizon) d. Azure CDN Premium from Edgio (formerly Verizon). - If it's an AFD, is it
a. Classic or
b. Standard or
c. Premium ?
For CDN,
- Refer : How Cache-directive headers are supported in CDN.
For AFD,
P.S:
Note that no-cache
does not mean "don't cache". no-cache
allows caches to store a response but requires them to revalidate it before reuse. If the sense of "don't cache" that you want is actually "don't store", then no-store
is the directive to use.
Should there be any follow-up questions or concerns, please let us know and we shall try to address them.
Thanks,
Kapil