How can I ensure that my visitors are viewing the most up date version of my site?
I assume you are referring to issues involved with page caching. There are a couple of meta elements you can add to the of your documents that can indicate caching is undesirable, but these aren’t necessarily supported by all browsers:
[code][/code]The latter meta element is really for older browsers. A more robust method is to use HTTP headers to deal with this. For maximum redundancy, set the headers like this: [code]Cache-Control: no-cache Pragma: no-cache[/code]If you are using PHP, you can [url=http://us.php.net/header][b]set headers[/b][/url] by placing statements at the top of your document like these: [code]<?php header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?>[/code]-- [url=http://jessey.net][b]si-blog[/b][/url] -- [b]Max[/b] discount on [i]any[/i] plan with promocode [url=http://dreamhost.com/r.cgi?53419/signup|SCJESSEYTOTAL][b]SCJESSEYTOTAL[/b][/url]
Thanks so much for your response!
the HTTP header method sounds more like what I’m looking for…
Would it be possible to explain how to go about this in more detail?
Header set Cache-Control "max-age=0, no-store"Ignore the “pragma” thing I mentioned earlier - it shouldn’t be needed on the DreamHost setup and it would essentially create an invalid server response. If you want to restrict this behavior to a specific file or group of files, you could do something like this:
Header set Cache-Control "max-age=0, no-store"
Sweet! I’ll let you know how it goes. Thanks again.
Used the first htaccess setting and everything seems to be working as planned!
THANKS SO MUCH!.