Chrome在本地主机上加载缓存的文件 [英] Chrome loading cached files on localhost
问题描述
我现在在两台不同的机器上都遇到了这个问题.
I'm having this problem across 2 different machines now.
版本63.0.3239.84(正式版本)(64位) OSX 10.12.6
Version 63.0.3239.84 (Official Build) (64-bit) OSX 10.12.6
Chrome浏览器正在持久加载http://localhost:3000
上的旧缓存文件.我可以阻止它的唯一方法是使用隐身模式.如果我使用cmd + shift + r
,它可以进行一次刷新,然后在重新加载时返回到旧文件.
Chrome is persistently loading old cached files on http://localhost:3000
. The only way I can stop it, is to use incognito. If I use cmd + shift + r
it works for a single refresh, then goes back to the old files on reload.
我通常会启动检查器,所以我尝试在disable cache
上打勾,这没什么.我还尝试通过chrome的设置删除我的缓存文件,但此操作无济于事.
I typically have the inspector up so I've tried ticked disable cache
, that doesn't nothing. I've also tried deleting my cached files through chrome's settings, that does nothing.
我这里想念什么吗?
推荐答案
最终意识到它是什么.我在该端口上运行的先前服务器具有清单文件和适当的服务工作程序.这意味着chrome在默认情况下正在加载那些缓存的文件.
Finally realised what it was. A previous server I was running on that port had a manifest file and the appropriate service workers. It means that chrome was loading those cached files by default.
要解决此问题,我进入了开发人员工具>应用程序>清除存储空间.
To fix it I went into developer tools > application > clear storage.
现在可以正常工作了.
这篇关于Chrome在本地主机上加载缓存的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!