在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设备,看看设备是否被检测到

其他回答

像Ctrl+Shift+R这样的快捷键在Android上也适用,你只需要一个能够发送这些键的键盘。我用的是黑客键盘 发送Ctrl+Shift+R,这在我的手机上很难重新加载。

您可以使用应用程序菜单(地址栏右侧)中的“请求桌面站点”选项,这将强制页面重新加载。

只需点击它,等待刷新,然后取消选择。

我找到了一个可行的办法,但很难看。

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浏览器中,只需勾选“桌面网站”,然后删除勾选!!

以隐身模式查看页面将禁用缓存。这是我在不通过设置手动清除缓存的情况下强制刷新样式表的唯一方法。