如何在 Chrome 中启用禁用缓存时缓存特定资源

How to cache specific resources while disable cache is on in Chrome

在 Chrome Dev Tools 中打开 disable cache 选项进行开发时是否可以缓存特定资源?

例如,在测试禁用缓存的本地项目时,可能想要缓存 https://fonts.googleapis.com/css

您不能使用 DevTools。禁用缓存可能会禁用整个缓存。

您可能 star 最近 feature request in the Chromium issue tracker 要求此功能。请记住 +1,我也是,不需要任何其他非建设性的评论。只需登录并单击左侧栏中问题编号旁边的星号。这将使开发人员知道其他人也需要此功能。