diff --git a/files/en-us/web/api/requestinit/index.md b/files/en-us/web/api/requestinit/index.md index a1b61feec6e02b8..5fbddcb75295745 100644 --- a/files/en-us/web/api/requestinit/index.md +++ b/files/en-us/web/api/requestinit/index.md @@ -54,7 +54,7 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request` - `default` - - : The browser looks for a matching request in its HTTP cache. + - : The browser looks in its HTTP cache for a response matching the request. - If there is a match and it is [fresh](/en-US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age), it will be returned from the cache. - If there is a match but it is [stale](/en-US/docs/Web/HTTP/Caching#fresh_and_stale_based_on_age), the browser will make a [conditional request](/en-US/docs/Web/HTTP/Conditional_requests) to the remote server. If the server indicates that the resource has not changed, it will be returned from the cache. Otherwise the resource will be downloaded from the server and the cache will be updated. @@ -66,24 +66,24 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request` - : The browser fetches the resource from the remote server without first looking in the cache, _but then will_ update the cache with the downloaded resource. - `no-cache` - - : The browser looks for a matching request in its HTTP cache. + - : The browser looks in its HTTP cache for a response matching the request. - If there is a match, _fresh or stale,_ the browser will make a [conditional request](/en-US/docs/Web/HTTP/Conditional_requests) to the remote server. If the server indicates that the resource has not changed, it will be returned from the cache. Otherwise the resource will be downloaded from the server and the cache will be updated. - If there is no match, the browser will make a normal request, and will update the cache with the downloaded resource. - `force-cache` - - : The browser looks for a matching request in its HTTP cache. + - : The browser looks in its HTTP cache for a response matching the request. - If there is a match, _fresh or stale_, it will be returned from the cache. - If there is no match, the browser will make a normal request, and will update the cache with the downloaded resource. - `only-if-cached` - - : The browser looks for a matching request in its HTTP cache. {{experimental_inline}} + - : The browser looks in its HTTP cache for a response matching the request. {{experimental_inline}} - If there is a match, _fresh or stale_, it will be returned from the cache. - - If there is no match, the browser will respond with a [504 Gateway timeout](/en-US/docs/Web/HTTP/Status/504) status. + - If there is no match, a network error is returned. The `"only-if-cached"` mode can only be used if the request's [`mode`](/en-US/docs/Web/API/Request/mode) is `"same-origin"`. Cached redirects will be followed if the request's `redirect` property is `"follow"` and the redirects do not violate the `"same-origin"` mode.