为什么Chrome的隐身模式检索资源的速度比普通模式快? [英] Why does Chrome's Incognito mode retrieve resources faster than the normal mode?
问题描述
我在多台计算机(台式机和笔记本电脑)和操作系统(Windows和Mac)上对此进行了测试,并且可以复制相同的行为:
在隐身模式下下载资源要快得多(不是渲染速度)
I tested this from multiple machines (desktops and laptops) and OSes (Windows and Mac), and I can replicate the same behavior:
Resources are downloaded much faster in Incognito mode (not the rendering speed)
我可以大致想到两种情况下隐身模式和普通模式可以分别更快:
I could roughly think of two conditions under which Incognito and normal modes can be faster respectively:
- 隐身模式可以更快,因为它没有扩展名。
- 普通模式可以更快,因为它可以缓存资源。
所以我禁用了所有扩展模式,并重置删除缓存和浏览历史记录等的所有设置。
So I disabled all my extensions in normal mode and "reset" all the settings which deleted cache and browsing history, etc.
在所有情况下,当我查看Chrome检查器时,都会下载资源隐身模式下的速度比普通模式下快得多。在隐身模式下,链接加载速度非常快。
In all cases, when I looked at the Chrome inspector, resources are downloaded much faster in Incognito mode than in normal mode. Links load blazingly fast in Incognito mode.
为什么会这样?
推荐答案
我遇到了同样的问题,事实证明这是一个缓存问题。
此处也提到了同样的内容:
https: //support.google.com/chrome/forum/AAAAP1KN0B0JRiv4Pyb8uE/?hl=no
I had the same problem and it turned out to be a caching problem. The same was also mentioned here: https://support.google.com/chrome/forum/AAAAP1KN0B0JRiv4Pyb8uE/?hl=no
Why does an incognito tab load a website much faster than a site opened normal tab?
通过使用以下答案,我可以在没有隐身模式的情况下达到相同的加载速度:禁用缓存Chrome扩展程序(我使它适用于所有 url的网址:[< all_urls>]]
)
I was able to achieve the same loading speed without the incognito mode by using this answer: Disable cache Chrome Extension (I made it work for all urls urls: ["<all_urls>"]
)
使用 webRequest
禁用缓存使它的速度与隐身模式一样快。
Disabling cache with webRequest
has made it as fast as in the incognito mode.
这篇关于为什么Chrome的隐身模式检索资源的速度比普通模式快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!