Link to home
Create AccountLog in
Avatar of Juan_Diego
Juan_Diego

asked on

Avoiding caching of links

I previously asked if it is possible to avoid caching of webpages seen when someone creates a browser by choosing CHtmlView as the CView-derived class when creating an MFC application.  I successfully avoided caching the page sent whose URL was sent to the CHtmlView::Navigate2 function by setting the appropriate bit in dwflags.  However, every time I clicked on a link, the page that the link took me to would get cached.  Is there a way to avoid this?
ASKER CERTIFIED SOLUTION
Avatar of Wyn
Wyn

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Juan_Diego
Juan_Diego

ASKER

Adjusted points to 250
My purpose in being able to shut off the cache is to be able to create whose only task is to read a website with material that I want to protect from copying.  Right now I am only able to do that for the first page you see, and not any page one follows through a link, nor even when one refreshes this first page.

I can manually erase cached files from my machine through the Internet Options in the Control Panel, but is there a way that I can keep people who use my browser from ever seeing the cached material?  The Navigate2 funciton did not accept the flag I gave it from the msdn page.

I am raising the points to 250 if you can successfully find a way for me to prevent not only the first page you see, but every page one links to from being cached.
Hi,Juan_Diego.I dont think you carefully examine my answer.You can force every websire downloaded from net to be loaded directly from internet rather than the cache.
If you use IE,you can check your IE settings:
Go to "Internet settings - general tab - temporary internet files - settings" and check for newer versions of pages settings to the "Every visit to the Page" option.
This will do that.

However,another way is enumerating the files in cache and delete them.(the link I gave you above).
But It seems not meet your purpose.
Regards
W.Yinan