|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Forum
My website content changes frequently and I am concerned that many of my visitors are not seeing the updated content because their browsers are using a cached image. Is there a way to force browsers to auto refresh when they visit your site - so the visitor is getting the latest content every time ? Charles |
|
||||
|
Try adding the following meta tags to the head section of your page's code.
This will help prevent caching of the page. <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="Expires" content="-1"> NB: The -1 setting for the page expiry works for Internet Explorer, but other browsers will ignore it. I'm reliably informed that replacing the -1 with a real date from the past will work more effectively. As illustrated below: <meta http-equiv="expires" content="Wed, 21 Aug 1996 12:15:39 GMT"> Some sites also use the Pragma no-cache tag, however this doesn't work for IE 5 browsers, with the result that headers are often filled with a combination of the different metatags in the hope that one of them is going to work! :o) Remember, that the purpose of the browser's cache is to speed up the response on revisiting the server, so if you have a heavy download on your site's page, this may marginally impair performance. Hope that helps, Paul PS. Here are some additional links for further reading: Caching Tutorial for Web Authors and Webmasters http://www.web-caching.com/mnot_tutorial/ HOWTO: Prevent Caching in Internet Explorer http://support.microsoft.com/default...b;EN-US;234067 "Pragma: No-cache" Tag May Not Prevent Page from Being Cached http://support.microsoft.com/default...b;EN-US;222064 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |