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