是否“清空缓存和硬重载”?清空整个缓存或仅清空与当前站点相关的部分? [英] Does "Empty Cache and Hard Reload" empty the entire cache or just parts relevant to the current site?

查看:119
本文介绍了是否“清空缓存和硬重载”?清空整个缓存或仅清空与当前站点相关的部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chromium / Chrome中的空缓存和硬重装是否会清空整个缓存或与当前站点相关的部分?

Does "Empty Cache and Hard Reload" in Chromium/Chrome empty the entire cache or just parts relevant to the current site?

我的意思是,它完全清空了所有缓存的资源(如此答案的注释中所建议)。

My inkling is that it empties absolutely all cached resources (as suggested in the comment to this answer).

但是,确定的答案会有所帮助。

However, a definitive answer would be helpful.

推荐答案

它将清空整个缓存。

您可以通过以下步骤进行验证:

You can verify this with these steps:


  • 浏览一些站点( reddit 堆栈溢出 ,...)

  • 在多功能框中输入 chrome:// cache

  • 保存文件列表

  • 转到没有外部资源的基本网站,例如 example.com

  • 打开开发者控制台,右键单击刷新,然后选择 空缓存和硬重载

  • 再次在多功能框中输入 chrome:// cache

  • 将缓存文件列表与您在第三步中保存的列表进行比较。即使没有被example.com引用,由Reddit和Stack Overflow缓存的文件也将消失。

  • Browse through a few sites (reddit, stack overflow, ...)
  • Enter chrome://cache into the omnibox
  • Save the list of files
  • Go to a basic website with no external resources like example.com
  • Open the developer console, right click on Refresh, and select Empty Cache and Hard Reload
  • Enter chrome://cache into the omnibox again
  • Compare the list of cached files with the list you saved in the third step. Files that were cached by Reddit and Stack Overflow will be gone, even though they are not referenced by example.com.

这篇关于是否“清空缓存和硬重载”?清空整个缓存或仅清空与当前站点相关的部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆