Re: IIS6, ASP.NET and Kernel Caching

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 03/23/05


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/..


Relevant Pages

  • NFS problems with through 2.5.x to 2.6.0-test9
    ... When the server is running the ... kernel, as a client the 2.6 series seem to work perfectly, excluding ... Interesting problem arose when I attempted switch the server's kernel to ... with and without nfsv4 support compiled in (was considering testing it at ...
    (Linux-Kernel)
  • [Summary] SunRay server failure
    ... SunRay Server Software 1.3 ... Kernel: panic: AutoRenewDHCP: IPA lease expired -- must restart ...
    (SunManagers)
  • Re: NFS EINVAL on open(... | O_TRUNC) on 2.6.23.9
    ... The bug (userspace server side i would say at this point) is well described from the author of an nfs-user-server patch which has not been managed yet. ... The nfs patch is of course waiting for commit since august, ... What isn't quite clear to me is whether this commit causes your user- space server to start failing suddenly, or it causes the client to start sending the special non-standard time stamps in the SETATTR request. ... it would be helpful if you could run this test with a constant kernel version on one side while varying it on the other. ...
    (Linux-Kernel)
  • RE: Linux 2.6.8-rc4 "Kernel panic: Attempted to kill init!" - af ter replacing /fadsroot
    ... In my previous e-mail I forgot to mention that on the remote NFS Linux ... I am booting with ramdisk as root filesystem server and then trying to ... PowerPC Linux Kernel Image ...
    (Linux-Kernel)
  • Re: Microkernel X11?
    ... I assumed it was a kernel crash, ... And no deal is it a solid X server or some microkernel based. ... it also messes up the console subsystem in a way that switching to ... more religious Linux proponents against Minix. ...
    (comp.os.minix)