How to force refresh without cache in Google Chrome?
In the opened developer tools (Ctrl+Shft+I or ⌘+⌥+I):
- Select the Network tab
- Activate Disable cache check-box.
- DO NOT CLOSE Developer tools - otherwise cache is re-enabled.
Chrome documentation states that Ctrl+F5 or Shift+F5 should do "Reloads your current page, ignoring cached content. "
If it is not working, you can file a bug report, but it looks like quite a few other people are having the same issue.
[Existing bug log on this issue] Closed as a duplicate, the issue remmains:
[Issue: 94090]
On a Mac, it's Shift+Command+R, or holding down Shift while clicking the reload button (as opposed to Command+R or a normal click for a regular refresh).
Some more details:
For Shift+Command+R, cache is simply ignored and resources are requested like no cache existed.
For Command+R, Chrome will issue If-Modified-Since
or Etag
requests to the web server, even for things that are actually cached. For most, if not all, content the server should then respond with 304 Not Modified
. This is true for most, if not all, modern browsers.
The only way to force relying on the cache (without the browser even asking for possible changes) seems to be clicking a link on the web page, or by following a bookmarked link, or by going into the URL location bar and hitting Return there (Command+L, Return).
However: a longstanding known issue in Chrome, Chrome Forced Refresh does not ignore cache (and the more recent Reload/Refresh does not refresh), or maybe actually a feature in WebKit, Dynamically inserted subresources aren't revalidated even when the containing document is reloaded, makes Chrome not clear ALL related caches when using the above methods. A Chromium developer explains:
The network tab of the developer tools show a waterfall of all resources as they are loaded. There are two vertical lines at the right hand side... one of them is labeled "Load event fired" on hover. Anything loading after that point is not officially part of the page (a page can keep issuing requests for hours) [...] so it will NOT be "refreshed" with any combination of f5. This is by design.
[...]
Caching [of any resource, before and after the "Load event fired" line] is determined by the HTTP headers of the response, not by the time the request was issued.
Also note a @ChromiumDev's tweet:
Chrome DevTools' Disable Cache invalidates the disk cache (great for developing!), but.. only while devtools is visible.