The "only-if-cached" mode can only be used if the request's mode is "same-origin".
![chrome force refresh cache chrome force refresh cache](https://nira.com/wp-content/uploads/2019/09/More_Tools_-_Chrome_Settings-e1582321175751.png)
If there is no match, the browser will respond with a 504 Gateway timeout status.only-if-cached - The browser looks for a matching request in its HTTP cache.If there is a match, fresh or stale, it will be returned from the cache.force-cache - The browser looks for a matching request in its HTTP cache.Otherwise the resource will be downloaded from the server and the cache will be updated. If the server indicates that the resource has not changed, it will be returned from the cache. If there is a match, fresh or stale, the browser will make a conditional request to the remote server.no-cache - The browser looks for a matching request in its HTTP cache.
#Chrome force refresh cache update
![chrome force refresh cache chrome force refresh cache](https://betterstudio.com/wp-content/uploads/2019/07/chrome-clear-browsing-data-1024x571.jpg)
If there is no match, the browser will make a normal request, and will update the cache with the downloaded resource.If there is a match but it is stale, the browser will make a conditional request to the remote server.
![chrome force refresh cache chrome force refresh cache](https://www.wpbeginner.com/wp-content/uploads/2019/10/chrome-tools.png)