You receive a new Web page instead of a cached Web page even though the SetSlidingExpiration method is set to true on a computer that is running the .NET Framework 2.0 (909643)
The information in this article applies to:
- Microsoft .NET Framework 2.0
SYMPTOMSWhen you try to configure a Microsoft ASP.NET Web page to use a sliding expiration on a computer that is running the Microsoft .NET Framework 2.0, you receive a new Web page from the server instead of a cached Web page.
This issue occurs even though the SetSlidingExpiration method is set to true.CAUSEThis problem occurs because a request to the origin server always generates a response when the SetSlidingExpiration method is set to true. A value of true sets cache expiration to sliding. WORKAROUNDTo work around this issue, use one of the following methods to prevent the origin server from generating a response when the SetSlidingExpiration method is set to true: - Response.Cache.SetLastModifiedFromFileDependencies
- Response.Cache.SetETagFromFileDependencies
- Response.Cache.AddValidationCallback
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 11/23/2005 |
---|
Keywords: | kbtshoot kbcode kbprb KB909643 kbAudDeveloper |
---|
|