Click here to Skip to main content
15,908,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

i writing an app that can cache the website i visit in the webbrowser control and resue it later.

if you use firefox 5, open some pages and close firefox leaving some tabs open, even restart the system. openng firefox again, it loads those pages fron cache.

how can i do this in c#?

any ideas or reference are welcomed
Posted
Updated 13-Jul-11 1:04am
v2

1 solution

I'm not sure if the web pages are reopened from the cache because after restarting the pc and reopening Firefox, it looks like the pages are requested from the webserver again and not from the cache.

You can however do something similar by keeping the history of all visited pages and with every entry you store an indicator that represents the page currently opened or not. Set the indicator to closed when a user does this but otherwise leave those indicator values to opened and when your application is started you open all the pages from the history that have the indicator value opened.

Good luck!
 
Share this answer
 
Comments
Manfred Rudolf Bihy 13-Jul-11 7:23am    
Good one! 5+
Cool Smith 13-Jul-11 7:25am    
@E.f i know what am talking about those pages display within a second. am using a dialup that takes about a 30s or more to browser web page
E.F. Nijboer 13-Jul-11 15:31pm    
My version on Firefox reloads them and does a request from the web and not the cache. It takes some time and I'm on a dsl line. But, aside of all this, check out the following link:
http://www.codeproject.com/KB/miscctrl/csEXWB.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900