site cashing

Results 1 to 3 of 3

Thread: site cashing

  1. #1
    Join Date
    Dec 1969

    Default site cashing

    I have noticed that my site is being cahed by aol and don't want this to happy as it will effect the stats on my site is tehre anyway i can stop this?

  2. #2
    Join Date
    Dec 1969

    Default RE: site cashing

    Add this to the top of your pages:<BR><BR>Response.expires = 60<BR>Response.ExpiresAbsolute = Now()-2<BR>Response.AddHeader "pragma","no-cache"<BR>Response.AddHeader "cache-control","private"<BR>Response.CacheControl="no-cache"<BR>

  3. #3
    Join Date
    Dec 1969

    Default By the way...

    AOL, nor ANYTHING ELSE will be able to cache .asp pages, by default. Browsers may, but routers/proxies WILL NOT.<BR><BR>This is because every ASP page tries to set a cookie. This information means that the proxy/router will identify the page as FOR THAT USER ONLY, and will not cache it.<BR><BR>If you have Session state disabled then it will not try and set the cookie. However, IIS doesn&#039;t transmit any "was last modified" details (try opening an ASP page and then typing "document.lastModified" into the browser address bar - you&#039;ll get the date when the object was served, not modified), so caching doesn&#039;t usually take place.<BR><BR> has information on all of this.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts