Discussion:
It's not caching for me! WININET calls
(too old to reply)
Jun Wan
2003-07-23 02:14:36 UTC
Permalink
Stephen,

Would you please let me know more background about the issue? I am not
quite clear about "it never checks modified date, etc". Thank you.

Regards,
Justin Wan
Microsoft Partner Online Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Jun Wan
2003-07-24 12:36:40 UTC
Permalink
Hello,

Thank you for your detailed information. Based on my understanding, you
wrote an activex installed into the browser.

You encountered the following scenarios:

1, If your did not install the activex control within the IE to get the
image files, and IE works as expected (the second fetch will take image
from cache) based on http request trace.

2, If you wrote some programs to call the activex control to get the
images, the programs worked as expected.

3, If you install the activex control onto IE and let IE get the images,
the IE will always get images from web site instead of the cache.

Is it correct?

As you have noticed, scenario3's cause is that the second http request for
the image is not what we exepcted so that the server will not response with
"no modified" tag so that the IE will fetch image from web site.

Based on these three scenarios, the root causes should come from the
interoperation between IE and your activex control. So please try to post
the issue on

http://msdn.microsoft.com/newsgroups/loadframes.asp?ICP=msdn&sLCID=us&NewsGr
oup=microsoft.public.inetsdk.programming.webbrowser_ctl

Regards,
Justin Wan
Microsoft Partner Online Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Stephen Alpert
2003-07-24 16:33:32 UTC
Permalink
Justin:

Your description below is not entirely correct. If I take the identical code
(which I posted) and put it in a standalone win32 console program it works. If
I try it in my ATL ActiveX control which is hosted in the browser, it does not.
I noted with the "spy" that in the browser, it never seems to check the cache
first (so no if-modified header)...

/steveA
Post by Jun Wan
Hello,
Thank you for your detailed information. Based on my understanding, you
wrote an activex installed into the browser.
1, If your did not install the activex control within the IE to get the
image files, and IE works as expected (the second fetch will take image
from cache) based on http request trace.
2, If you wrote some programs to call the activex control to get the
images, the programs worked as expected.
3, If you install the activex control onto IE and let IE get the images,
the IE will always get images from web site instead of the cache.
Is it correct?
As you have noticed, scenario3's cause is that the second http request for
the image is not what we exepcted so that the server will not response with
"no modified" tag so that the IE will fetch image from web site.
Based on these three scenarios, the root causes should come from the
interoperation between IE and your activex control. So please try to post
the issue on
http://msdn.microsoft.com/newsgroups/loadframes.asp?ICP=msdn&sLCID=us&NewsGr
oup=microsoft.public.inetsdk.programming.webbrowser_ctl
Regards,
Justin Wan
Microsoft Partner Online Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Steve Alpert S t e v e _ A l p e r t @ I D X . C O M

-------------------------------------------
NOTICE OF CONFIDENTIALITY
-------------------------------------------
The information in this email, including attachments, may be confidential
and/or privileged and may contain confidential health information. This
email is intended to be reviewed only by the individual or organization
named as addressee. If you have received this email in error please
notify IDX immediately--by return message to the sender or to
***@idx.com--and destroy all copies of this message and any
attachments. Please note that any views or opinions presented in this
email are solely those of the author and do not necessarily represent
those of IDX. Confidential health information is protected by state and
federal law, including, but not limited to, the Health Insurance
Portability and Accountability Act of 1996 and related regulations.
Loading...