Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

getting caching info in PassthruAPP

45 views
Skip to first unread message

Ginger Gee

unread,
Nov 19, 2003, 2:11:43 AM11/19/03
to
Igor, many thanks for your PassthruAPP. It's been invaluable.

I'm trying to gather information (transfer times and data sizes) of http
responses. All works well for new URLs, but I haven't been able to find out
when the responses are just being read from the cache.

Is there some callback or query call that would tell me if the response is
cached?

CoInternetQueryInfo(QUERY_IS_CACHED) seemed promising, but it only tells you
if the URL has been cached before, not if the current response uses that
cached copy. I figured I might be able to cobble this together with
IWinInetHttpInfo::QueryInfo(HTTP_QUERY_LAST_MODIFIED), but it seems pretty
hacky.

Thanks,
Ginger


Igor Tandetnik

unread,
Nov 19, 2003, 10:03:16 AM11/19/03
to
"Ginger Gee" <gin...@bogusaddr.com> wrote in message
news:3fbb182d$1...@usenet01.boi.hp.com...

> I'm trying to gather information (transfer times and data sizes) of
http
> responses. All works well for new URLs, but I haven't been able to
find out
> when the responses are just being read from the cache.

Query the target APP for IWinInetInfo, call
QueryOption(INTERNET_OPTION_REQUEST_FLAGS), check whether the result has
INTERNET_REQFLAG_FROM_CACHE set.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


0 new messages