3

Google Chrome refreshing without asking

 2 years ago
source link: https://www.codesd.com/item/google-chrome-refreshing-without-asking.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Google Chrome refreshing without asking

advertisements

I have problem without solution and need help.

I take secure code to prevent http refresh, it monitoring if the client request too mutch http response and prevent it to take the server down.

If we take too mutch refresh on page, the client gets blank page with the tittle "Loading..." for 2 seconds, and after that the normal page load.

To make that the code use:" meta http-equiv="Refresh" " tag, and by some reason on determined situation the page still refreshing without stop.

I searched for some solution, and found that was a "inssue" from Chrome and apparently with no solution.

I try use javascript to verify if client using Chrome, and if is Chrome don't refresh with meta tag, make the refresh with javascript.

Anyway, Chrome still exhibits this behavior, which is making me nuts.

If you want to try, can you access www.sport4u.com.br access any product or link on page, press F5 many times (10seconds) when you get blank screen with Loading title press "History back" button, and wait.

What can be causing this, and how can I solve it?


OK this is very strange as it seems to be caused by Chrome's auto-translate feature. I am using Chrome 24.0.1312.5 dev-m running on English Windows 7 and when I load http://www.sport4u.com.br/ then the page automatically reloads every 2 seconds. In fact, if I view the page source I get the following:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />

<meta http-equiv="Content-Language" content="tr">
<script>
    window.setTimeout('window.location.reload(); ',2000);
</script>
<title>Loading...</title>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#fff">

and immediately you can see the reload() code.

Chrome has also popped open the auto-translate bar at the top of the page as it thinks the page is in Portuguese and offers to translate it. However on the second reload (after 2 seconds) Chrome now thinks the page is in Turkish (as this is the language in the code above)! This continues many times until eventually Chrome stops. Even closing the translate bar at the top does not stop the reloading.

If I disable the Chrome translate settings (chrome://settings/search#languages) and load the page, there is no refreshing and the View Source returns the correct page.

I would suggest either instructing Chrome to not refresh the page - see Why does Chrome incorrectly determine page is in a different language and offer to translate? or fix the encoding problems with certain characters which is making Chrome think the page is in the wrong language. If you run the page through the W3C validator it shows an incorrectly encoded character which might be the cause.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK