JavaScript alert on my site not showing up on Opera
-
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.