View Full Version : refresh issue
indie
09-12-2004, 01:28 PM
Hi:
I have my portal as my home page, as the index.php.
Why do I have to refresh the page to see the latest? If i leave the page and i come back, i see a cached page, and if i refresh, i see the latest. thanks
Brian
09-12-2004, 01:36 PM
You should either change your internet settings not to pull from cache, or you can add this code in your 'adv_portal' template, somewhere between your <head> </head> tags.
<!-- nocache headers -->
<meta content="no-cache" http-equiv="pragma" />
<meta content="no-cache" http-equiv="no-cache" />
<meta content="-1" http-equiv="expires" />
<meta content="no-cache" http-equiv="cache-control" />
<!-- end nocache headers -->
indie
09-12-2004, 01:42 PM
So just curious, how does vb3 run? Is the forum itself also caching headers? Is this to save on bandwidth. can it be put in the site header?
Are most people using the no-cache code you have provided?
thanks!
indie
09-12-2004, 02:27 PM
Ok, i looked and the vb index also uses this code, but it is slightly different, so i copied it from the original index to the portal file you said.
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
I'm sure it does the same thing even though its slightly different.
thanks for the tip.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.