JavaScript alert on my site not showing up on Opera
-
burnout426 Volunteer last edited by
@jkreski When I click the Google map, I get an alert that says "Made it to here!" no problem. I get it even with Opera's adblocking and tracking protection turned on.
Does the alert work fine in a private window?
-
sgunhouse Moderator Volunteer last edited by
@jkreski A private window is a separate window with no access to cookies or history if you want to make sure no one is tracking you. It also disables all extensions, which makes it useful for checking if a "bug" might be due to some extension installed on your system. You should have the option on the right-click menu to open the link in a private window.
-
jkreski last edited by leocg
@sgunhouse Oh wow! A whole new world! And Yes, I do get the alert in the private window once I click the Google Map. Now what? And thanks!
-
jkreski last edited by
@sgunhouse I disabled all my extensions and restarted my browser and that did not correct the issue...
-
burnout426 Volunteer last edited by
Goto the URL
opera://settings/content/all
, typechasertool.xyz
in the search field and click "Delete displayed data". You might want to try the same thing withgoogle.com
andgoogleapis.com
. Maybe evengstatic.com
.Goto the URL
opera://settings/clearBrowserData
and clear "cached images and files" for all time.While on http://www.chasertool.xyz/GMapAddressToLatLng.html, click the badge at the left of the address field (usually a lock, but a triangle in this case), goto "site settings" and choose "reset permissions". Maybe goto just http://chasertool.xyz/ and try the same. You might want to try the same thing with https://www.google.com/.
-
jkreski last edited by leocg
@burnout426 Did step 1. No different. Did step 2. It Worked! Thank you for your help and patience!
-
jkreski last edited by
@burnout426 Something is wrong... the cache is not refreshing. I got the alert but now do not want it. So I commented it out in my code, saved the file and uploaded it to my server. When I click the Google Map I DO get the alert which now is not wanted. I tried the Private page and it did NOT have the alert. I don't want to have to delete all my settings every time I make some change to my site and upload it. Can you think of any setting that I should be using to correct for this situation? Thanks! A fresh rabbit hole I suspect...
-
burnout426 Volunteer last edited by burnout426
After making a change on the server, you can hit ctrl + F5 on the page to load the fresh version of the page.
-
burnout426 Volunteer last edited by
While testing the site at least, you can have the server send:
Cache-Control: no-cache, no-store, must-revalidate
in the response header to the client if you want.
-
jkreski last edited by
@burnout426 Works like a charm! Is there a way to send this command:
- On a cell phone - both Android and iPhone?
- Via JavaScript code from within the webpage so when it loads it runs?
-
jkreski last edited by
@burnout426 tried to get the Cache-Control command to work in the header of my webpage and couldn't get it to work. One did nothing and another try rendered a blank white page. Do I do this from within the webpage on the server from the HEAD section and should it be in a JavaScript script?
-
burnout426 Volunteer last edited by
@jkreski You can try adding the following inside
<head>
.<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0">
to see if it helps. But, I was talking about doing it as an HTTP response header. Not sure how to do that for LiteSpeed that you're running, but you can search for info if the meta tags don't work.