Skip to content

Commit

Permalink
chore(http): replace images w/ shared-assets (#37643)
Browse files Browse the repository at this point in the history
* replace images w/ shared-assets

* Add some alt text to diagrams

---------

Co-authored-by: Brian Smith <[email protected]>
  • Loading branch information
Jxck and bsmth authored Jan 24, 2025
1 parent 7c9071a commit f3e6411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/http/caching/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ That means if a managed cache intentionally ignores a `no-store` directive, ther

Note that some CDNs provide their own headers that are effective only for that CDN (for example, `Surrogate-Control`). Currently, work is underway to define a [`CDN-Cache-Control`](https://httpwg.org/specs/rfc9213.html) header to standardize those.

![Type of Cache](type-of-cache.png)
![Types of caches, including a private cache in the browser, a shared (proxy) cache, a reverse proxy cache, and a shared (managed) cache in a CDN, leading to the origin server's cache](https://mdn.github.io/shared-assets/images/diagrams/http/cache/type-of-cache.svg)

## Heuristic caching

Expand Down Expand Up @@ -481,7 +481,7 @@ Request collapse occurs when requests are arriving at the same time, so even if

If the response is personalized to a particular user and you do not want it to be shared in collapse, you should add the `private` directive:

![Request Collapse](request-collapse.png)
![Request collapse shown as multiple clients sending GET requests and a cache consolidating them into one GET to the origin. The origin server responds with a 200 OK that the cache shares back to all clients.](https://mdn.github.io/shared-assets/images/diagrams/http/cache/request-collapse.svg)

## Common caching patterns

Expand Down

0 comments on commit f3e6411

Please sign in to comment.