Hi

Try sticking a revision number on the style/script url like so:

href/src="/path/to/file?r=12"

Browsers will download and cache that link (depending on the cache settings of 
the browser/ web server / proxy). When you make a revision to the file, bump 
the revision number:

href/src="/path/to/file?r=13"

The browser will then download the new revision as it doesn't match what it is 
in the cache. If you use a revision control system like (svn, bazaar, git etc 
etc) this can be done to some extent automagically with some server side 
scripting by looking up the revision number of the file in question and 
tacking it on the the query string (you don't want to do that on every http 
request so it's best to try and do it statically whenever the file is changed 
e.g by creating an html template ready for inclusion) - otherwise just bump 
the revision numbers manually.

There are other methods to look at when dealing with caching including the 
HTTP headers that are sent by your web server which tell browsers and proxies 
if and how they should cache files. That's a large topic in itself so I'd 
suggest googling for some basic caching how-tos  to get started.

HTH
James

On Fri, 23 May 2008 08:42:38 pm Matt Fellows wrote:
> Sounds like IE6 is caching the original stylesheet. This is entirely
> expected as it increases performance and responsiveness for the user
> on subsequent page loads.
> There is no nice way around it. I'm sure you could use JavaScript of
> some sort to reload the script but i don't think it is worth it.
>
> On Fri, May 23, 2008 at 7:53 PM, Steven Workman <[EMAIL PROTECTED]> 
wrote:
> > Hi everyone,
> >
> > I'm having a problem with an element I've created for my current project.
> > It's basically a styled rounded-corner box with a title (it looks like a
> > fieldset but is correctly structured HTML). To get all my padding working
> > correctly I'm using conditional styles for IE6, but some users are
> > reporting that they have to refresh their screens (press F5) in IE before
> > the positioning works correctly!
> >
> > Have any of you heard of this before? Is there a way around it? Any
> > recommendations?
> >
> > Many thanks,
> >
> > Steve Workman
> > PA Consulting Group
> > 123 Buckingham Palace Road
> > London SW1W 9SR
> > United Kingdom
> >
> > Direct dial: +44 207 881 3732
> > [EMAIL PROTECTED]
> > www.paconsulting.com
> >
> >
> >
> > *******************************************************************
> > List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> > Help: [EMAIL PROTECTED]
> > *******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to