Re: caching of CSS
From: Ken Schaefer (kenREMOVE_at_THISadopenstatic.com)
Date: 12/23/04
- Next message: Ken Schaefer: "Re: ASP.NET is slow"
- Previous message: Schadrach: "Re: Session times out unexpectedly."
- In reply to: M.L.: "caching of CSS"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 23:57:16 +1100
Expire immediately will set the:
Expires:
HTTP header. This means that the document will end up being expired when it
reaches both the proxy, and the end client, which you may, or may not, want.
You could also add a custom header:
Cache-Control: no-cache
or
Cache-Control: private
to prevent caching by most modern proxies (the latter setting allows caching
by clients). For some older proxies you can also add:
Pragma: no-cache
Cheers
Ken
"M.L." <ML@discussions.microsoft.com> wrote in message
news:8425F272-3D83-46C5-BC00-1D60E789C894@microsoft.com...
> Hi NG,
>
> I have read numerous messages on this problem, but I cannot seem to find a
> definite "best practice". So, here goes:
>
> I have an eShop running on Server 2003 with IIS6 viewed by many customers
> on
> different local networks. I have recently made a substantial change to the
> site and the .css file that goes with it. And while the majority of the
> customers see the changes right away, several have complained that the
> site
> looks "strange". I have seen screenshots of their IE, and I can confirm
> that
> they see the new site with the old stylesheet. So, I am lead to believe
> that
> these customers either have a proxy server in between their browser and
> the
> IIS or special caching-settings set on their client. Of the two, I think
> the
> former is more likely.
>
> How do I solve this problem? Should I set the "Expire
> Immideately" -property
> in the IIS6 on that specific file, or..? If I do that, all clients will
> need
> to reload the rather large stylesheet every time they load a new page?
> That's
> not very efficient..
>
> All suggestions are greatly appreciated, thanks!
>
> Regards,
>
> M.L.
- Next message: Ken Schaefer: "Re: ASP.NET is slow"
- Previous message: Schadrach: "Re: Session times out unexpectedly."
- In reply to: M.L.: "caching of CSS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|