RE: Page has Expired

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 05/28/04


Date: Fri, 28 May 2004 06:03:00 GMT

Hi Moondaddy,

>From your description, you found when you use "forward and back" button on
the client browser to view a requested page, you 'll get "Page has
Expired" error,yes?

Generally the "Page has Expired" error is caused by the page's client side
cache has been expired. In most cases, we need to write code to manually
make it expire , however your problem seems that you don't want it expire
but it does. So I think you can check the following things first:

1. Try viewing the page from different client machine to see whether it can
repro on different machine. Thus, we can confirm whether its due to
clientside browser or the server side's setting.

2. Is the problem only focus on a certain page, if so , would you have a
check on the page's code to see whether it has any code to set the
clientside cache. You can view the following referen in MSDN on this:
#Setting the Cacheability of a Page
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconsettingcacheabilit
yofpage.asp?frame=true

Especially notice the below description in it:
======================================
Note If you set cacheability to HttpCacheability.NoCache or
HttpCacheability.ServerAndNoCache, the requesting client will not cache
pages in its History folder. For example, any time a user clicks a back or
forward button, a new version of the response will be requested. You can
override this behavior by setting the
HttpCachePolicy.SetAllowResponseInBrowserHistory method to true.
==================================================

If you still not sure, please provide the page's complete code or it's
better if you can generate a simple demo page to repro the problem. Thus
I'll try testing on myside to do some furthure researh.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

 



Relevant Pages

  • Re: caching of CSS
    ... Expire immediately will set the: ... HTTP header. ... reaches both the proxy, and the end client, which you may, or may not, want. ...
    (microsoft.public.inetserver.iis)
  • Re: Theoretical programming question
    ... to "expire" a video file. ... They want to create a video file, ... are cracking tools to circumvent the DRM and that we have no control over ... the end client OS and viewer software. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: HTTP Compression issues with IIS 5
    ... "Won't this expire all content on the client immediately including ... clients when using HTTP compression. ... I previously suggest you select 'expire immediately' to see if this ... Specify Additional Document Types for HTTP Compression ...
    (microsoft.public.inetserver.iis)
  • Re: user must chage password in ldap
    ... Wolfgang Mair wrote: ... works: it doesn't;-) Reason: There is no LDAP-standard by which the ... Because of this no client I've come accross warns you your password will ... expire, and no client allow you to change your password if it is already ...
    (comp.sys.sun.admin)
  • Problem with password expirations
    ... the domain is served by Windows 2003 Servers. ... will soon expire and do they wish to change it. ... like this if the client was running XP as it logs the user ... in while still applying the domain policy in the ...
    (microsoft.public.win2000.general)