Re: Caching problem

From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 11:10:26 +1000

You need to work out if IIS is caching the page (ie always sending out the
same content), or the browser is, or some proxy server in between is.

Is this an ASP page? Or some other dynamic page? Or a static page (like a
HTML page)?

Cheers
Ken

"Adrienne" <anonymous@discussions.microsoft.com> wrote in message
news:4faf01c473e2$bfb352a0$a501280a@phx.gbl...
> I have tried removing the code in the head section and
> just setting the http headers in IIS to expire content
> immediately and it did not work. I have also tried
> unchecking content expiration entirely and only putting
> the code in the head section and that did not work. I
> have also looked in knowledgebase but have not seen
> anything other than adding the meta tags in the header of
> the page. Is there anything else I can do?
>
> Adrienne
>
> >-----Original Message-----
> >a) Those meta tags should be in the <head></head> part of
> the page
> >
> >b) If you have real HTTP headers that are different to
> the <meta> tags, then
> >the real HTTP headers often override the meta tags. The
> meta tags are hints
> >that a browser can ignore, especially if it receives
> conflicting HTTP
> >headers
> >
> >c) If you are using ASP:
> >
> ><%
> >Response.ExpiresAbsolute = #1/1/1980#
> >Response.AddHeader "pragma", "no-cache"
> >Respones.AddHeader "cache-control", "no-cache"
> >%>
> >
> >HTH
> >
> >Cheers
> >Ken
> >
> >
> >"Adrienne" <anonymous@discussions.microsoft.com> wrote in
> message
> >news:473e01c47358$6d79ed80$a601280a@phx.gbl...
> >> I am running a website with iis 5.0 on w2k advanced
> >> server. I have the pragma and no-cache meta tags in my
> >> header (a copy is below). I even added the tags to the
> >> end of the page because I was told that sometimes it
> will
> >> not work in just the header and you must also add it to
> >> the end of your page. But that did not work because my
> >> pages are not reflecting the code changes I am trying to
> >> make. How do I stop the pages from being cached?
> >>
> >> <meta http-equiv="Pragma" content="no-cache"/>
> >> <meta http-equiv="Expires" content="-1" />
> >
> >
> >.
> >



Relevant Pages

  • Re: IIS on 2000 ADV Server with .wml support
    ... Did you try the suggestions given by Ian Jones? ... Kristofer Gafvert - IIS MVP ... >> HTTP Headers tab ... >> You'll need to set up mime type for wbmp too if you want to support ...
    (microsoft.public.inetserver.iis)
  • RE: OWA displays mail but wont let you read it
    ... Are you using Trend? ... Open IIS Manager ... - Alternatively you can go to the HTTP headers properties on each ... instead of installing OfficeScan on the default web site. ...
    (microsoft.public.windows.server.sbs)
  • Forcing retrieval of a fresh copy of a file with a link
    ... to serve a fresh copy of a file or B) the browser to "refresh" the ... as changing HTTP headers isn't really ... so adding a 'no cache' meta tag to the file itself ...
    (comp.infosystems.www.authoring.html)
  • Re: Third-Part Cookies blocked by IE
    ... The HTTP HEADERS were remove by IIS 6.0. ... Properties on the web root ... users could create their virtual web-sites by this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: read charset of meta tag
    ... which should give you the charset the browser has ... That is certainly possible as that browser will follow the HTTP headers and take any character set declarations in the headers in preference to anything else. ... that putting something to metatags the server obeys him/her. ...
    (comp.lang.javascript)