Upravit

Sdílet prostřednictvím


View Cache data

This guide shows you how to use DevTools to inspect Cache data.

To inspect HTTP cache data, in the Network tool, use the Size column of the Network Log. See Log network activity in Inspect network activity.

View cache data

  1. Open DevTools by pressing F12 or Ctrl+Shift+I (Windows, Linux) or Command+Option+I (macOS).

  2. In DevTools, on the Activity Bar, select the Application tab. If that tab isn't visible, click the More tools (More tools icon) button, and then click Application. The Manifest pane usually opens by default:

    The Manifest pane

  3. Expand the Cache Storage section to view available caches:

    Available caches

  4. Click a cache to view the contents:

    Viewing the contents of a cache

  5. Click a resource to view the HTTP headers in the section below the table:

    Viewing the HTTP headers of a resource

  6. Click Preview to view the content of a resource:

    Viewing the content of a resource

To learn more about cache data storage quota, see Quota usage in Debug a Progressive Web App (PWA).

Refresh a resource

  1. View the data for a cache.

  2. Click the resource that you want to refresh. DevTools highlights it to indicate that it is selected.

  3. Click Refresh (Refresh):

    Selecting a resource to refresh

Filter resources

  1. View the data for a cache.

  2. Use the Filter by Path text box to filter out any resources that don't match the path that you provide:

    Filtering out resources that don't match the specified path

Delete a resource

  1. View the data for a cache.

  2. Click the resource that you want to delete. DevTools highlights it to indicate that it is selected.

  3. Click Delete Selected (Delete Selected):

    Selecting a resource to delete

Delete all cache data

  1. In the Application tool, click Storage.

  2. Make sure that the Cache storage checkbox is selected.

  3. Click the Clear site data button:

    The 'Clear site data' button

Note

Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License. The original page is found here and is authored by Kayce Basques.

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.