| Origin server | Disabled | - If no-cache, private, or no-store is set in the Cache-Control response header of the origin server, CDN PoPs will not cache resources.
- If other directives are set on the origin server, the cache priority is s-maxage > max-age > expires. For example, if Cache-Control: max-age=500, s-maxage=400 is set on the origin server, CDN PoPs cache resources for 400s, as specified by s-maxage.
- If none of these directives are set on the origin server, CDN uses the cache TTL set on its console.
|
| Origin server | Enabled | The no-cache setting of the origin server is ignored. Resources are still cached even if no-cache, private, or no-store is set in the Cache-Control response header of the origin server. The cache logic is as follows: - If directives are set on the origin server, the cache priority is s-maxage > max-age > expires. For example, if Cache-Control: max-age=500, s-maxage=400 is set on the origin server, CDN PoPs cache resources for 400s, as specified by s-maxage.
- If none of these directives are set on the origin server, CDN uses the cache TTL set on its console.
|
| CDN | Disabled | - If no-cache, private, or no-store is set in the Cache-Control response header of the origin server, CDN PoPs will not cache resources.
- If noun of no-cache, private, and no-store is set in the Cache-Control response header of the origin server, CDN uses the cache TTL set on its console.
|
| CDN | Enabled | CDN ignores response headers from the origin server and uses the cache TTL set on the CDN console. |
| Whichever is shorter | Disabled | - When the cache TTL set on CDN is shorter:
- If no-cache, private, or no-store is set in the Cache-Control response header of the origin server, CDN PoPs will not cache resources.
- If noun of no-cache, private, and no-store is set in the Cache-Control response header of the origin server, CDN uses the cache TTL set on its console.
- When the cache time set on the origin server is shorter:
- If no-cache, private, or no-store is set in the Cache-Control response header of the origin server, CDN PoPs will not cache resources.
- If other directives are set on the origin server, the cache priority is s-maxage > max-age > expires. For example, if Cache-Control: max-age=500, s-maxage=400 is set on the origin server, CDN PoPs cache resources for 400s, as specified by s-maxage.
- If none of these directives are set on the origin server, CDN uses the cache TTL set on its console.
|
| Whichever is shorter | Enabled | - When the cache TTL set on CDN is shorter, CDN uses it and ignores response headers from the origin server.
- When the cache time set on the origin server is shorter, the no-cache setting of the origin server is ignored. In this case, resources are still cached even if no-cache, private, or no-store is set in the Cache-Control response header of the origin server. The details are as follows:
- If directives are set on the origin server, the cache priority is s-maxage > max-age > expires. For example, if Cache-Control: max-age=500, s-maxage=400 is set on the origin server, CDN PoPs cache resources for 400s, as specified by s-maxage.
- If none of these directives are set on the origin server, CDN uses the cache TTL set on its console.
|