[thelist] Viewing updates without emptying the cache

Mark Groen evolt at markgroen.com
Wed Sep 5 18:08:50 CDT 2007


On Wednesday 05 September 2007 15:47, Chris Price wrote:
> .....
> Are there other tricks that will force the browser to show the live
> version?

A simple way with static html, is to pretend it's not and add a question mark 
and foo after the URI:

http://www.greatsite.com/index.html?version=new
same thing can be done with your style sheet rel links. 

You could also use php (for example) to make the foo a time so it constantly 
changes:
<link href="/style/main.css?ver=<?php echo date('hs'); ?>" rel="stylesheet" 
type="text/css" />

Or send the right headers:
http://developer.apple.com/internet/safari/faq.html#anchor5
http://support.microsoft.com/kb/234067
-- 
cheers,

        Mark



More information about the thelist mailing list