Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
how to check that newest page is loaded
Old 03-25-2009, 10:35 AM how to check that newest page is loaded
magicvw's Avatar
Extreme Talker

Posts: 233
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
I don't know whether I need a bit of html or javascript to do this, so apologies if in the wrong place

I need to put something in a webpage which automatically reloads the newest version of the page in the browser. (At least, that's what I think I need...)

THe problem is that I have a page with various products for sale with paypal buttons, which I update from time to time. I have had several people click on buttons which don't exist anymore, and paypal still takes their money despite me deleting the buttons in my paypal account, but they get no product. I want to do something which ensures that when this page is loaded, the visitor must get to see the new version, even if the old one is in their cache.

I tried to do this with meta <meta http-equiv="refresh" content="0; url=page.html"/>

but it just refreshes constantly. I know I can change the time limit, but is there a way to refresh the page immediately, but only once?
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
 
Register now for full access!
Old 03-26-2009, 09:30 AM Re: how to check that newest page is loaded
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
add
HTML Code:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
to the pages, User agents should then reload the page from the server rather from their local cache.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-26-2009, 11:39 AM Re: how to check that newest page is loaded
magicvw's Avatar
Extreme Talker

Posts: 233
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
Quote:
Originally Posted by chrishirst View Post
add
HTML Code:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
to the pages, User agents should then reload the page from the server rather from their local cache.
Perfect thanks Chris! Now, what does that code actually mean?
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
Old 03-26-2009, 07:18 PM Re: how to check that newest page is loaded
Brian07002's Avatar
Defies a Status

Posts: 2,142
Name: ...
Location: ...
Trades: 0
Quote:
<meta http-equiv="pragma" content="no-cache">
No cache just tells the browser not to use cached pages and therefore it must call the web server for the page again

Quote:
<meta http-equiv="expires" content="0">
Expires sets the date that the page expires (value of 0 means to expire immediately)

Hth
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2009, 07:09 AM Re: how to check that newest page is loaded
magicvw's Avatar
Extreme Talker

Posts: 233
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
Quote:
Originally Posted by Brian07002 View Post
No cache just tells the browser not to use cached pages and therefore it must call the web server for the page again



Expires sets the date that the page expires (value of 0 means to expire immediately)

Hth

Thanks!
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
Reply     « Reply to how to check that newest page is loaded
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20179 seconds with 12 queries