Page Refresh
I have written a guestbook script in ASP. How can I make a page refresh itself whenever it is loaded instead of reading from cache? Each page must be refreshed so that new guestbook entries are visible.
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
Arielladog posted this at 19:58 — 19th June 2000.
They have: 122 posts
Joined: Jun 1999
inserting these meta tags should make sure that your page doesn't get cached.
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
Moderate at JavaScriptCity Forums
Arielladog posted this at 04:45 — 20th June 2000.
They have: 122 posts
Joined: Jun 1999
That's the way I learned to do a no-cache thing. I did a little research on it, and
<META HTTP-EQUIV="expires" CONTENT="0">
Tells the browser to expire the page immediately and
<meta http-equiv="pragma" content="no-cache">
tells it to not cache it. This one is an old one and is not supported by IE.
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
Specifies the action of cache agents. Possible values:
Public - may be cached in public shared caches
Private - may only be cached in private cache
no-cache - may not be cached
no-store - may be cached but not archived
I hope that helps you and personally, I would use all three just in case.
Moderate at JavaScriptCity Forums
Lloyd Hassell posted this at 15:25 — 20th June 2000.
They have: 231 posts
Joined: Feb 2000
Thankyou Arielladog. I will play around with those meta tags. Do I need all three?
Lloyd Hassell posted this at 14:53 — 22nd June 2000.
They have: 231 posts
Joined: Feb 2000
Thanks for that info. I have noticed that those meta tags only work inside the head of a document. Now my problem has been solved.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.