Pregenerating an AppCache

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Pregenerating an AppCache

Postby Skavenger » Wed Mar 14, 2018 11:28 am

Hi,

We are in the process of using CEF3 as a replacement for a legacy browser we use in our application. As such we have been using the (now) deprecated AppCache feature of the browser. We have a method of pre-generating these files when we create our application installers so as to give the user the ability to install and run our app offline without actually having to be online when they first run it. Once they go online this cache is updated and we no longer have the need for these pre-canned files.

We have been able to replicate this system with CEF. However it seems that we cannot generate an appcache on one PC and use it on another without a load error occurring. Is this an issue with the way that CEF3 code supports appcaching and if so is there a workaround?

Note: our pages are hosted under https:// so i wouldn't be surprised if the SSL validation is the point of failure somehow.

Thanks in advance.
- Dave
Skavenger
Newbie
 
Posts: 5
Joined: Wed Mar 14, 2018 11:17 am

Re: Pregenerating an AppCache

Postby magreenblatt » Wed Mar 14, 2018 1:43 pm

I don't think the Chromium cache is designed to be cross-computer portable (and that could be considered a security issue -- if someone gained access to your computer, downloaded your cache and tried to access it). You may need to implement your own application-specific caching mechanism using request interception: https://bitbucket.org/chromiumembedded/ ... terception
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Pregenerating an AppCache

Postby Skavenger » Fri Mar 16, 2018 5:17 am

Thanks for the reply.

We do trim out any identifiable files (cookies/local storage etc are all deleted) and only keep the AppCache and Cache folders, which after analysis only contain the files that would normally be downloaded by the browser/CEF. This works for the same PC but doesn't on another. I am however inclined to agree in that it could be a major security issue and as such there are preventative measures in-place to stop this practice.
Skavenger
Newbie
 
Posts: 5
Joined: Wed Mar 14, 2018 11:17 am


Return to Support Forum

Who is online

Users browsing this forum: girivasans, Google [Bot] and 98 guests