Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

How does caching affect logging?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Fine - 13 Feb 2008 20:20 GMT
I'm looking for a clear answer regarding how caching (ASP.NET and classic
ASP) might affect IIS6 server logs.

Related: I'm wondering if ASP.NET output caching might affect tracking
schemes of the sort used by Google Analytics, that use a javascript embed to
communicate with the mother ship.

Is there any effect on IIS logs at all? Do you risk underreporting? I was
reading the docs for the standalone Urchin analytics product last night, and
there was the suggestion that their javascript-utilizing counting mechanism
bypassed problems with caching. I'm wondering what exactly those problems
are, and how I can accurately analyze my older logs.

Thanks,
--KF
Steven Cheng[MSFT] - 14 Feb 2008 02:23 GMT
Hi KF,

As for IIS log, I think it will record all the requests that come through
the IIS server. ASP.NET or ASP runtime is hosted in IIS and receive request
from IIS via ISAPI extension, therefore, no matter how you configure the
ASP.NET or ASP code logic(such as cache or anything else...), the request
always come to IIS server first and IIS router it to the ASP.NET/asp
extension. In other words, no ASP.NET or ASP requests will by pass IIS
layer.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: "Ken Fine" <kenfine@newsgroup.nospam>
>Subject: How does caching affect logging?
[quoted text clipped - 15 lines]
>Thanks,
>--KF
bruce barker - 14 Feb 2008 04:59 GMT
here are four levels of caching

1) client caching. on by default, the client will cache the page and
reuse it. no iis log

2) proxy caching. on by default, the proxy server will cache the page
and reuse it. no iis log.

3) iis caching (say gzip is on). iis will cache the page and reuse, but
will log.

4) asp.net caching. no on by default, but pages are cached in memory if
enabled, but still the request is logged.

to get around any caching, a small javascript routine is emitted on the
page that does a cacheless hit (via a unique url). images used to be
used, but many browsers suppress image fetches.

-- bruce (sqlwork.com)

> I'm looking for a clear answer regarding how caching (ASP.NET and
> classic ASP) might affect IIS6 server logs.
[quoted text clipped - 11 lines]
> Thanks,
> --KF
Ken Fine - 14 Feb 2008 05:45 GMT
Outstanding answers, thank you Steven and Bruce.  This is exactly what I
needed.

-KF

> here are four levels of caching
>
[quoted text clipped - 31 lines]
>> Thanks,
>> --KF

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.