如何在没有菜单按钮的设备上刷新Chrome(Ctrl + F5模拟)中的网页? -- chrome-for-android 领域 android 相关 的问题

How to refresh a web page in Chrome (Ctrl+F5 analogue) on a device without menu button?




我有一个带有4.2.2和Chrome浏览器的Nexus 7 Android设备。

如何执行Web页面的深刷新 - ctrl + f5 热键的类似桌面上的热键?




I have a Nexus 7 Android device with 4.2.2 and Chrome browser.

How can one perform a deep refresh of a web page - analogue of Ctrl+F5 hotkey on desktops?

Please, notice that the device does not have a menu button.

According to the only related question I've found here, the solution is to clear browser cache completely. I'd prefer more convenient and elegant solution.











  Settings > Privacy > CLEAR BROWSING DATA   

选择"缓存" 复选框(以及其他选项,如浏览器数据,cookie,密码等),如果要选择"清除" 。

注意: Ctrl + F5 将导致浏览器丢弃缓存和请求来自服务器的新内容,服务器可以忽略 no-cache 标题并提供服务器端缓存页面。因此,即使 Ctrl + F5 如果服务器忽略了no-cache标头,则可以返回页面的旧版本。



更有趣的讨论 Ctrl + F5 或强制刷新,

读取此帖子,浏览器的请求'F5"和" Ctrl + F5"刷新生成?


Bypassing per site cache:

This needs a simple javascript code to be run in the address bar for bypassing the cache and fetch contents from the server instead of the browser cache. According to this MDN page on Force reloading the current page from the server,


Enter the above code in the browser address bar and hit Enter key. This will fetch all the contents from the server instead of picking the elements cached in your browser(thus bypassing the browser cache).

Bypass Cache data for all websites(Global cache)

The above javascript work only for a specific website which you have currently opened. To clear all the website cache use the global browser cache data. You find this under,

Settings > Privacy > CLEAR BROWSING DATA 

Select the "Cache" Checkbox (and other options like Browser data, Cookies, Password etc if you want) and select "Clear".

Note: While Ctrl+F5 will cause the browser to throw out the cache and request new contents from the server, the server may ignore the no-cache header and serve a server-side cached page. Thus, even Ctrl+F5 may return an old version of the page if the server ignores the no-cache header.

Incognito Mode:

Browsing through incognito mode disables history and cache. So you can visit any site through incognito mode to request fresh content everytime.

For more interesting discussion on the what does Ctrl+F5 or force refresh does,

Read this SO post, What requests do browsers' xe2x80x9cF5xe2x80x9d and xe2x80x9cCtrl + F5xe2x80x9d refreshes generate?




您将找到一个垃圾图标以清除当前站点的缓存,以及"还原首选项" 按钮。

在Android Chrome 71上工作。


I found it !!!!!!

On the left side of the URL there is an info icon (i) or a lock icon. Click the icon and then [web site configuration].

You will find a trash icon to clear cache of the current site, and alternatively a "restore preferences" button.

Working on Android Chrome 71.




应该使用JavaScript触发硬重新加载。现在我不必等待几天来遵守我制作的代码变更的结果。 那是一个新问题,那是在平板电脑上打字不是我最喜欢的事情。



On my Samsung tablet browsing with Chrome, type this in the address bar:


That should trigger a hard reload using Javascript. Now I do not have to wait for days to observe results of a change of code I made. A new problem then is that typing on a tablet is not my favorite thing to do.

Instead of typing the above command I also tried to change to desktop mode and then back. That did not deep refresh.



首先,找出CSS URL。在我的情况下,它看起来像这样:

  Settings > Privacy > CLEAR BROWSING DATA 0  


  Settings > Privacy > CLEAR BROWSING DATA 1  



I did not get any of these solutions to work. However I have found a working solution.

First, find out the css url. In my case it looked like this:


Write it in the address field, but also add a GET variable to it:


Hopefully the GET variable is accepted. Because it's a new url it forces the css to reload. Now go back to the site and the css should have been reloaded.




I just find more elegant solution. In the menu of webpage ask for desktop version of the website. It will pull data from the server and page will reload. After that you can come back for mobile version once again.





  ctrl + R   



  ctrl + shift + R or shift + F5   


他们可能会这样做是为了在浏览基准中作弊。 VW风格。

我写了自己的解决方法forcereload()函数,用于Windows Chrome和Android Chrome和Chromium:

  window.forceReload = function(){     if( !window.fetch)return document.location.reload( true);     var els = document.getElementsByTagName( "*");     for( var i = 0; i < els.length; i++){         var src = "";         if( els[i].tagName == "A")continue;         if( !src && els[i].src)src = els[i].getAttribute( "src");         if( !src && els[i].href)src = els[i].getAttribute( "href");         if( !src)continue;         fetch( src, { cache: "reload"});     }     return document.location.reload( true); };   



I need a way to clear the current cache or all cache from the same origin domain via javascript, so i can make sure the update rollout of my webapp arrives without errors.

I also had no success on temporarily changing the cache meta tags in the html header.

Only on desktop and not automatable:

ctrl + R 

used to work to force reload to clear the cache.

now you have to press

ctrl + shift + R or shift + F5 

It seems like chrome made it difficult to clear the cache.

They probably do this to cheat in browserspeed benchmarks. VW Style.

I wrote my own workaround forceReload() function that works on windows Chrome and android Chrome and chromium:

window.forceReload = function(){     if( !window.fetch)return document.location.reload( true);     var els = document.getElementsByTagName( "*");     for( var i = 0; i < els.length; i++){         var src = "";         if( els[i].tagName == "A")continue;         if( !src && els[i].src)src = els[i].getAttribute( "src");         if( !src && els[i].href)src = els[i].getAttribute( "href");         if( !src)continue;         fetch( src, { cache: "reload"});     }     return document.location.reload( true); }; 

This function will only reload contents that have been loaded on the current page, you can trigger it once on each of your clients after new updates are on the server, or simply add a working refresh button on your app.





I use a New Incognito Tab. It works on other devices and browsers, as well. It avoids the local cache normally.

Notice that private sessions can still be considered concurrent, so you may have to close all incognito tabs to clear their cache.




Pull down on a page to reload it, it comes ncorporated to chrome for smartphones, to see more tricks like that check this link, where i found the solution for your problem




To the left of the web address window you are visiting is a nearly circular arrow.



26  为什么新的Chrome更新希望许可使用我的相机和音频录制?  ( Why does the new chrome update want the permission to use my camera and audio re ) 
严重,它专门说明它可以使用相机和音频录制任何需要的时间,我是否希望它到。为什么Android上的Chrome请求这些权限? 我应该担心吗? (强调我自己的。) ...

1  在Android Chrome 73中禁用平滑滚动  ( Disable smooth scrolling in android chrome 73 ) 
是否有一种方法可以在Android Chrome 73.x中禁用平滑滚动?它似乎现在已经为所有网站启用了所有网站,并将其设置为"禁用" 在Chrome://标志中没有任何内容。 动机:平滑滚动行为使CTRL + F-ING通过长页相当痛苦(每个结果之间的毫无意义的动画几秒钟)。 ...

3  如何在文本输入焦点上禁用放大?  ( How do i disable zooming on text input focus ) 
我知道制作网页时有一些禁用缩放的技巧,但如何禁用焦点对我的设备上的缩放? 我有偏执狂Android和Xposed框架,所以,我知道什么是可能的。 ...

0  Chrome重定向到三星移动上的信使  ( Chrome redirects to messenger on samsung mobile ) 
我一直在我的三星Google Chrome浏览器上重定向通知,其中包含指向Messenger的链接。我曾经安装过Messenger,但我从未使用过它也没有使用过Facebook帐户。 但是现在它使它看起来像我使用的播放商店秘密使用Messenger和我的配偶相信我秘密使用Messenger。我需要一个人的帮助.......

0  是不可能通过链接知道Android手机的WiFi MAC地址吗?  ( Is it impossible to know a wifi mac address of an android phone via a link ) 
有人怀疑他使用我的被盗的手机,所以我想确保他使用的手机是我的,而不是了解手机的WiFi MAC地址,看看它是否是我的。 我已经使用了 iplogger 之前但所有显示的东西都是IP地址 - android版本 - 浏览器 - 手机型号 - 等。在告诉警察这个人之前,我只是想确定。 我已经完成了跟踪报告,但他们什么...

10  如何快速滚动Chrome Mobile  ( How to fast scroll on chrome mobile ) 
我刚刚在我的Galaxy笔记(ICS,CM9)上安装了Chrome Mobile,而虽然它具有这种漂亮的卡式界面,但我没有找到如何将屏幕轻快滚动到页面的顶部或底部。 换句话说,使用Android股票浏览器,在一个非常长的页面上,如果我用一个手指向上快速向下滑动屏幕,页面将从页面底部滚动到顶部页面。如何用Chrome ...

18  如何在没有菜单按钮的设备上刷新Chrome(Ctrl + F5模拟)中的网页?  ( How to refresh a web page in chrome ctrlf5 analogue on a device without menu ) 
我有一个带有4.2.2和Chrome浏览器的Nexus 7 Android设备。 如何执行Web页面的深刷新 - ctrl + f5 热键的类似桌面上的热键? 请注意,设备没有菜单按钮。 根据唯一的我在这里找到的相关问题,解决方案是完全清除浏览器缓存。我更喜欢更方便和优雅的解决方案。 ...

5  嵌入式YouTube视频有声音但没有视频  ( Embedded youtube videos have sound but no video ) 
每当我遇到一个带有嵌入式YouTube视频并按下播放的页面,那么就会听到声音,但视频将是空白的(黑屏)。 控件工作只是很好 - 这只是我没有任何视频。 如果我试图将手机旋转到横向,那么视频将在屏幕旋转之前简要展示,然后再次回到黑色。声音将继续发挥作用。如果我试图将手机旋转回肖像,那么同样的事情再次发生。 这个问题发生...

17  如何在移动Chrome上添加书签而不复制和粘贴?  ( How can a bookmarklet be added on mobile chrome without copying and pasting ) 
在我的Android手机上,用户如何添加 bookmarklet 我的Chrome书签,无需使用其他设备,而无需复制和粘贴? 我的网站上有一个书签,我想要其他人要添加到他们的书签,所以我正在寻找一个直接的方法。 bookmarklet是书签,但其中包含JavaScript代码而不是常规Web链接。 在很多方面,可...

4  有没有办法在Chrome浏览器中自动加载不安全的内容,用于Android?  ( Is there a way to automatically load insecure content in chrome browser for andr ) 
类似于这个问题,但是对于移动空间...... https://superuser.com/questions/487748/387748/允许-Chrome浏览器到加载 - Intecure-Content 是否有一种方法可以自动在Chrome浏览器中自动加载android的不安全内容? 我理解,理想情况下...

© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有