Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cached pages...
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00756142
Message ID:
00757587
Views:
11
Ok, but of course all my pages are already made, so it would be just as easy to add the code to each page now, as to change the page they inheriet from.

BOb


>>Isn't there something you can put in the Global.asax to add stuff to the headers?
>
>Ok, its vaguely coming back to me :-) You have to be careful in ASP.NET when you talk about cache because there are several caches. There is the server side cache that ASP.NET maintains where you can store datasets and application state and there is the browser cache which is the one we are trying to control in this case.
>
>The Page.Cache refers to the server side cache. Page.Response.Cache (the Response intrinsic object) and Page.Response.CacheControl is the cache of the web browser. Through its properties (SetExpires, etc) you set the HTTP headers.
>
>SO! You can create your own PageBase class that derives from System.Web.UI.Page that sets the http cache as you like it. Just make all your asp.net pages subclass from PageBase in your code-behind.
Previous
Reply
Map
View

Click here to load this message in the networking platform