Skip to content

Commit 6e220b6

Browse files
Update default-cache-behavior.md (#11805)
* Update default-cache-behavior.md To clarify the infos and emphasise that Cloudflare does cache the resource even if there is no `Cache-Control` header based on status codes. (PCX-9002) * Apply suggestions from code review --------- Co-authored-by: angelampcosta <[email protected]>
1 parent c42a6ba commit 6e220b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/cache/concepts/default-cache-behavior.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ Cloudflare respects the origin web server’s cache headers in the following ord
1313
- The `Cache-Control` header is set to `private`, `no-store`, `no-cache`, or `max-age=0`.
1414
- The [`Set-Cookie` header](/cache/concepts/cache-behavior/#interaction-of-set-cookie-response-header-with-cache) exists.
1515
- Cloudflare **does** cache the resource when:
16-
- The `Cache-Control` header is set to `public` and `max-age` is greater than 0. Note that Cloudflare does cache the resource even if there is no `Cache-Control` header based on [status codes](/cache/how-to/configure-cache-status-code/#edge-ttl).
16+
- The `Cache-Control` header is set to `public` and `max-age` is greater than 0.
1717
- The `Expires` header is set to a future date.
1818

19-
Note: If both `max-age` and an `Expires` header are set, `max-age` will be used by Cloudflare.
19+
{{<Aside type="note">}}Cloudflare does cache the resource even if there is no `Cache-Control` header based on [status codes](/cache/how-to/configure-cache-status-code/#edge-ttl).{{</Aside>}}
20+
21+
{{<Aside type="note">}}If both `max-age` and an `Expires` header are set, `max-age` will be used by Cloudflare.{{</Aside>}}
2022

2123
For a list of directives and behaviors when Origin Cache-Control is enabled or disabled, refer to [Cache-Control directives](/cache/concepts/cache-control/#cache-control-directives).
2224

0 commit comments

Comments
 (0)