how to check for newer versions of pages in cache ?

931 views
Skip to first unread message

Stefan Tsalapatis

unread,
May 30, 2014, 4:13:24 AM5/30/14
to cefs...@googlegroups.com
Hi,
I am new in cefSharp.   thanks for  your good work.
How to check for newer versions of pages in cache ?
I don't want to clear the cache,  only to check for newer versions
 
Also is somewhere a reference for the properties and methods of WebView ?
thank you
Stefan

Jørn Hansen

unread,
Jun 5, 2014, 5:48:45 AM6/5/14
to cefs...@googlegroups.com
On Friday, May 30, 2014 10:13:24 AM UTC+2, Stefan Tsalapatis wrote:
> Hi,
> I am new in cefSharp.   thanks for  your good work.
> How to check for newer versions of pages in cache ?
> I don't want to clear the cache,  only to check for newer versions

I don't think the upstream CEF project has API for looking into the cache. At least a quick look for `cache` at http://magpcss.org/ceforum/apidocs3/index-all.html didn't give me any aha's :-)

Not sure I fully understand what you are after. But I guess you could build your own cache by intercepting requests/responses?

> Also is somewhere a reference for the properties and methods of WebView ?

The CefSharp 3 / master branch has recently received quite a bit if xmldoc love. So looking at the interface .cs files is current best source. We plan to publish that as part of next NuGet release for both intellisense and web based docs at http://NuDoq.org

If you spot anything missing most of the API reflects the CEF API linked to above (with a few adjustments for a more .net like experience). CEF has quite good documentation. Contributions in this area are always welcome!

Also note that we will very soon merge a rename of WebView to ChromiumWebBrowser.

--
Best regards,
JornH


> thank you
> Stefan

Stefan Tsalapatis

unread,
Jun 8, 2014, 6:42:01 AM6/8/14
to cefs...@googlegroups.com

Hi Jørn,
I was able to  enable or disable  the cache. Also  to use  an application local directory, ( this very useful).
But,  cefSharp  doesn't  check  if there is a new version of the  page , to refresh cache files. 
If I have not this  capability, I should  disable, entirely the cache.

IE (and the embedded webbrowser control ) has the option   "Check for newer versions of stored pages"  =>  "Every time I visit the webpage".

*** I think,  I understood now  what happens, 
Chrome    uses    in  the  proxy settings    the  Windows Internet Settings, where we can set this property as in IE.
I did not know that.
We should say to users to do the same as with IE settings
It would be nice  if cefSharp had this functionality, to change it by code, but from the other side is  user's right to control the internet behavior.

I will look for the documentation and maybe return with remarks or suggestions. (hope I could help, practically)   :-)

thank you
Stefan
Reply all
Reply to author
Forward
0 new messages