Re: IIS6, ASP.NET and Kernel Caching
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 03/23/05
- Next message: MS User: "Re: W3WP Crashing"
- Previous message: David Wang [Msft]: "Re: critical sections & sockets usage under IIS"
- In reply to: Raghu: "IIS6, ASP.NET and Kernel Caching"
- Next in thread: Raghu: "Re: IIS6, ASP.NET and Kernel Caching"
- Reply: Raghu: "Re: IIS6, ASP.NET and Kernel Caching"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Mar 2005 19:09:45 -0800
It depends on who "handled" the given resource.
If the IIS static file handler processed the XML and Image files, then they
will automatically be kernel cached if possible.
If ASP.Net or any other handler is scriptmapped to handle the resource, then
it is up to their caching policies. ASP.Net has @Page Directives to enable
declarative kernel response caching, but only if you ask for it in the ASPX
file.
To determine what "handled" the given resource, you have to look at the
Scriptmap settings active for that partricular URL. This is usually the same
across the web server, but it can be individually customized, so be aware of
it.
HTTP Header has nothing to do with kernel caching. From a conceptual
perspective, caching happens in three places:
1. on the originating server (i.e. the IIS web server)
2. on the client (i.e. the web browser)
3. the network between the server and client (i.e. intervening proxies and
the like)
Kernel caching is one aspect of caching on the server (#1). HTTP Content
Expiration deals with how the client perceives "data freshness" and hence
affect caching of response data (#2). There are other headers, like
cache-control, that tell the intervening network what to cache/not-cache
(#3). In other words, many things "cache" between the server and browser.
You must control all of the correctly to have your desired data freshness
effect.
-- //David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Raghu" <Raghu@Nospam.com> wrote in message news:e27gTNwLFHA.3844@TK2MSFTNGP14.phx.gbl... We have a web application with asp.net assemblies and some xml and image files. Do we have to do any thing special to enable kernel caching for xml and image files (as they are static)? What is the relation of http header content expiration (as shown on Http Headers tab in properties) to kernel caching? Thanks. Raghu/..
- Next message: MS User: "Re: W3WP Crashing"
- Previous message: David Wang [Msft]: "Re: critical sections & sockets usage under IIS"
- In reply to: Raghu: "IIS6, ASP.NET and Kernel Caching"
- Next in thread: Raghu: "Re: IIS6, ASP.NET and Kernel Caching"
- Reply: Raghu: "Re: IIS6, ASP.NET and Kernel Caching"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|