Specific Page Refresh - Post ID 197490

User 38401 Photo


Senior Advisor
10,951 posts

I would imagine if you change that 5 to 500 or 1000 something like that it will be that many seconds? Guessing here as I don't know exactly what numbers the script will allow. Maybe 0 will be default to only on landing on the page? Hopefully someone will know what is allowed there, but I would think if you put something like 3600 in there it would go for an hour. Most people don't stay on a site that long, but if you're anything like me that would mean you'll be refreshing your page every hour if you have your site(s) open in your browser in a tab that stays open most of the day hehe. Anyways let's hope Eric knows what's acceptable for the numbers :)
User 187934 Photo


Senior Advisor
20,271 posts

I'm pretty sure you can put very large numbers in there. I only posted what was asked for but now really want to now what it's needed for. PHP or JQuery would be the next suggestion if the user only wants the page to refresh the first time it's landed on.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2140875 Photo


Registered User
378 posts

Hi Eric...

and, thank you Jo Ann.

I am working on a site http://2oofydogs.net all done in VSD.

The person I am developing this for wants it published, even though not complete, so she can check progress. As I change the pages and she goes to the site she, of course, is seeing the cached old page. I have explained to her that all she needs to do is press F5 for a refresh. And, that once the site is complete caching won't matter. She wants none of it and wants to see the correct page when she lands on it.

So, that's why I am trying to find some code I can paste into VSD that will refresh the page on the first land.

Or, maybe there is some code that would not all the page to be cached in the first place.

Thanks for your help.

Galen
User 187934 Photo


Senior Advisor
20,271 posts

That would be this.

<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2140875 Photo


Registered User
378 posts

Thanks Eric. That's exactly what I was looking for.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.