By default, CDN caches content based on the Cache-Control header you provide. However, you can explicitly define how it should behave if:
- A header is missing
- A query string is introduced
- A particular match condition matches
Here you can find a basic setup for this feature:
As you can see, it gives you a lot of control over the behavior of the service, especially with the Custom caching rules.