Does “Empty Cache and Hard Reload” empty the entire cache or just parts relevant to the current site?

泄露秘密 提交于 2019-12-10 02:04:17

问题


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.


回答1:


It empties the entire cache.

You can verify this with these steps:

  • 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.



回答2:


It removes all cache. Hard reload would be like a hard reboot on a computer.



来源:https://stackoverflow.com/questions/23771569/does-empty-cache-and-hard-reload-empty-the-entire-cache-or-just-parts-relevant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!