cache property
Contains the cache mode of the request.
This property is read-only.
Syntax
| JavaScript |
|---|
cacheMode = object.cache |
Property values
Type: RequestCache
A DOMString that represents the request's cache mode.
Standards information
Remarks
The possible values of cache are:
| Name | Description |
|---|---|
| "default" | Inspects the HTTP cache on the way to the network. Updates the HTTP cache with the response (fresh response given priority). |
| "no-store" | Behaves as if there is no HTTP cache. |
| "reload" | Behaves as if there is no HTTP cache on the way to the network. |
| "no-cache | Creates a conditional request if there is a response in the HTTP cache and a normal request otherwise. |
| "force-cache" | Uses any response in the HTTP cache matching the request. |
The value of cache is "default" by default.