Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updates to page not immediately viewable by others

Status
Not open for further replies.

RP1America

Technical User
Aug 17, 2009
221
US
When making updates to a webpage, I generally go to the page and press Ctrl-F5 to refresh the page so that I can see the changes immediately to verify it all looks fine. However, on occasion when someone else goes to view the update on a different computer, it has not updated for them.

Does anyone know how to make the page update for other users, rather than telling them to press Ctrl-F5?

Thanks for your time!
 
Have a look at the meta tag 'Expires' here

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
johnwm,

Thanks for the info!

In the same article, I found information regarding 'cache-control'. In your opinion, should I use both the Expires and Cache-Control tags?

<meta http-equiv=”cache-control” content=”option” />
You can use the http-equiv=”expires” with a past date to ensure that the browser retrieves fresh files from the server (rather than caching). Since not all client browsers and caching devices (e.g. proxy servers) are known to successfully implement all no-caching options, include multiple no-caching options, including:

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="cache-control" content="no-store" />
 
I would

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top