How to tell when Chrome DevTools loads a file from cache
This article was translated from the Japanese original with AI. 日本語の原文を読む
In the Chrome DevTools Network panel, the Size column shows whether a file was loaded from the cache. A file that came from the server shows its size (for example, 0.4 kB). A file loaded from the cache (memory cache or disk cache) shows "(memory cache)" or "(disk cache)". When CSS or JavaScript changes don't show up on the page, you can use this to check whether the browser cache is the cause. In my test environment, reloading in the same tab loaded from the memory cache. Restarting Chrome, or opening the page in a new tab, loaded from the disk cache.
The test environment was Ubuntu 24.04, Node.js 22, and Chrome for Testing 153.0.8010.12 (the version bundled with Playwright 1.63.0). Because the environment has no screen, I ran Chrome in a normal window on a virtual display (Xvfb) and docked DevTools at the bottom of the window. I reloaded the page not with the F5 key but by sending Page.reload from a script through the Chrome DevTools Protocol (CDP). A reload that bypasses the cache is the same Page.reload with ignoreCache set, which the CDP definition treats the same as holding Shift while reloading. DevTools was in English. To fit the panel width, I hid the Initiator column in the Network panel settings. I did not test pages that use a Service Worker, prefetch, navigation with the back and forward buttons, HTTPS sites, or DevTools in Japanese.
Three places to check whether a file came from the cache
There are three places in the Network panel where you can check whether a file was loaded from the cache.
The first is the Size column. A file that came from the server shows its size, such as "0.4 kB". A file loaded from the memory cache or disk cache shows "(memory cache)" or "(disk cache)" in gray text.
The second is the tooltip that appears when you hover over the Size column. In my test environment, the text read as follows:
0.4 kB transferred over network, resource size: 0.1 kB
Served from memory cache, resource size: 0.1 kB
Served from disk cache, resource size: 0.1 kB
The first line is for a file that came from the server, the second for the memory cache, and the third for the disk cache. Looking at the DevTools source code (NetworkDataGridNode.ts), the Size column is written to show several different displays, including these three. When a Service Worker returns the response, or when the file is loaded from the prefetch cache, the display is different again.
The third is the Headers tab, which opens when you click a row. In the General section, the Status Code shows "(from disk cache)" when the file was loaded from the disk cache, and "(from memory cache)" when it was loaded from the memory cache. In the DevTools source code (RequestHeadersView.ts), this note is added only when the response came from the cache or a Service Worker and similar sources.

The totals row at the bottom of the Network panel is also useful. According to the official documentation, "transferred" is the amount received over the network, and "resources" is the total size of the files loaded (after decompression). In my test, the first visit showed "121 kB transferred" and "120 kB resources". Loading from the cache showed "200 B transferred" and "120 kB resources".
The test page and cache settings
For the test, I prepared a small page made of HTML, CSS, JavaScript, and a 640×400 JPEG image (119 kB). I served it from a Node.js server running in the test environment (localhost:8080). The server returns the following Cache-Control header for each file type:
| File | Cache-Control | Meaning |
|---|---|---|
| HTML | no-cache |
It may be stored, but must be checked with the server every time before use |
| CSS, JavaScript, images | max-age=3600 |
It may be used without checking the server for 3,600 seconds (one hour) |
Both meanings come from MDN's Cache-Control explanation. The server also attaches an ETag to every file. When the browser checks back and the file hasn't changed, the server returns 304 without sending the content.
Display for each way of loading
With the Disable cache checkbox in DevTools left unchecked, I changed how the page was loaded and recorded the Size column for the CSS, JavaScript, and image. I also counted the requests that reached the server, using the server log.
| How the page was loaded | Size column for CSS, JS, and image | Totals: transferred | Requests that reached the server |
|---|---|---|---|
| First visit | 0.4 kB, 0.3 kB, 119 kB | 121 kB | 4 (all 200) |
| Reload in the same tab | (memory cache) | 200 B | 1 (HTML returned 304) |
| Open a different page in the same tab | (memory cache) | 690 B | 1 (HTML returned 200) |
| Quit and restart Chrome, then open the same page | (disk cache) | 200 B | 1 (HTML returned 304) |
| Keep Chrome open and open the same page in a new tab | (disk cache) | 200 B | 1 (HTML returned 304) |
| Reload without using the cache | 0.4 kB, 0.3 kB, 119 kB | 121 kB | 4 (all 200) |
This is the Network panel after reloading in the same tab.

This is the Network panel after quitting Chrome, restarting it, and opening the same page.

In both cases, the requests for the CSS, image, and JavaScript did not reach the server. The server log contained only one request, for the HTML.
The HTML is no-cache, so the browser checks with the server every time. Since it hasn't changed, the server returns 304. The Size column shows "0.2 kB", meaning only the check was exchanged and no content was received.
The CSS and images were not checked with the server on reload. According to MDN's explanation of HTTP caching, Chrome changed its implementation so that on reload, it does not revalidate subresources (files used by the page). CSS and images still within their max-age were used from the cache without any check.
The difference between memory cache and disk cache
The memory cache is a cache held by the part of Chrome that displays pages (Blink). The Chromium source code (memory_cache.h) describes it as a cache that holds files the page uses, such as images, scripts, and stylesheets.
The disk cache is Chrome's HTTP cache. The Chromium source code (http_cache.h) says the HTTP cache uses disk_cache::Backend for storage. In the test environment, 272 KB of data remained in the Default/Cache folder in the Chrome profile.
The test results split as follows:
- Reloading in the same tab, and moving to a different page in the same tab, loaded from the memory cache.
- Restarting Chrome, and opening a page in a new tab, loaded from the disk cache.
- After restarting Chrome, reloading in that tab changed the source back to the memory cache.
The Time column also differed. Files from the memory cache showed 0 ms in every case. Files from the disk cache took 2 to 6 ms after restarting Chrome, and 7 to 11 ms when opened in a new tab. Neither cache involved communication with the server.
If the Size column shows (memory cache) or (disk cache), the file was not fetched from the server. If the CSS still looks old after you changed it, check the Size column for that CSS row first to see whether the cache is the cause.
Loading without the cache to verify changes
To check the result after changing a file, load it without using the cache.
One way is to check "Disable cache" above the Network panel and then reload. In my test environment, with the checkbox checked and the page reloaded, all four files came from the server and showed their sizes in the Size column. The tooltip for this checkbox reads "Disable cache while DevTools is open", meaning the setting applies only while DevTools is open. The official documentation on disabling the cache presents it as a way to approximate what a first-time visitor loads.
Another way is a reload that bypasses the cache (a hard reload). In my test environment, reloading with ignoreCache set on Page.reload brought the HTML, CSS, and images from the server, all with 200. MDN's explanation of forced reload says this makes the browser get a 200 OK from the origin server without using a cached response.
To delete the data itself from the cache, right-click a request in the Network panel's list and choose "Clear browser cache" (official documentation). The DevTools source code shows a confirmation dialog, "Are you sure you want to clear browser cache?", before the cache is cleared.
