在Chrome的桌面,我有选项在开发工具完全禁用缓存时,开发工具被打开,我有选项手动做一个硬加载时,长时间点击重新加载按钮(与开发工具打开)。
Chrome for Android有这样的技术吗?我没有找到任何背景。 当我想强迫浏览器下载一些javascript或css文件,而不是使用一个缓存时,我该怎么做?
在Chrome的桌面,我有选项在开发工具完全禁用缓存时,开发工具被打开,我有选项手动做一个硬加载时,长时间点击重新加载按钮(与开发工具打开)。
Chrome for Android有这样的技术吗?我没有找到任何背景。 当我想强迫浏览器下载一些javascript或css文件,而不是使用一个缓存时,我该怎么做?
当前回答
我找到了一个可行的办法,但很难看。
Connect the Android device to your PC with a USB cable and open Chrome on your desktop. Right-click anywhere on a page and select "Inspect". Click the three-dot menu and select "Remote devices" under the "More tools" menu: In the panel that opens, select your device and then the "Inspect" button next to the name of the tab on your phone that needs to be refreshed: In the window that opens, click the "Network" tab and check the "Disable cache" checkbox: Reload the page on your phone or using the reload button in the DevTools window.
注意:如果你的手机没有出现在设备列表中: 确保USB连接使用的是文件传输模式,而不是简单的充电 尝试重新启动ADB或运行ADB设备,看看设备是否被检测到
其他回答
远程调试允许您使用桌面dev-tools:
https://developers.google.com/chrome-developer-tools/docs/remote-debugging
我找到了一个可行的办法,但很难看。
Connect the Android device to your PC with a USB cable and open Chrome on your desktop. Right-click anywhere on a page and select "Inspect". Click the three-dot menu and select "Remote devices" under the "More tools" menu: In the panel that opens, select your device and then the "Inspect" button next to the name of the tab on your phone that needs to be refreshed: In the window that opens, click the "Network" tab and check the "Disable cache" checkbox: Reload the page on your phone or using the reload button in the DevTools window.
注意:如果你的手机没有出现在设备列表中: 确保USB连接使用的是文件传输模式,而不是简单的充电 尝试重新启动ADB或运行ADB设备,看看设备是否被检测到
提到这一点是因为你提到了“开发时”。
你可以通过Chrome桌面浏览器控制移动设备。
访问chrome://检查/#设备在你的桌面上。并检查连接到桌面的设备。在被要求允许时同意。
您现在应该在移动设备上看到针对当前页面的完整的Devtool窗口。
现在,使用硬重载快捷方式(Cmd+Shift+R)在桌面上做硬重载移动设备!
还有一个选项:
菜单 设置 隐私 清除浏览数据 选择“缓存”并按“清除”
然后重新加载页面。
最新版本的Chrome缓存非常激进。甚至像“http://url?”Updated =datecode"停止工作。您必须每次都清除缓存或启动一个隐身窗口(并确保数据保存程序关闭)。