using Xilium.CefGlue
I need to intercept http calls for caching purpose-if UI/Data is already cached- then I want to return the cached data, else get response from server and cache it for next time.
What are the correct steps to achieve it?
· Create my own CefResourceHandler and CefSchemeHandlerFactory and handle requests in ProcessRequest() call?
· Create my own CefRequestHandler and handle requests in OnBeforeResourceLoad()?
With GetResourceHandler, I am able to get ProcessRequest() calls. With callback.Continue(); and return true; I get immediate calls to GetResponseHeaders() and ReadResponse().
In GetResponseHeaders(), redirectUrl is set to null.
I see the url loaded on browser if I am not using my own CefResourceHandler. With my own handler, UI is not getting rendered.
What is missing here - a new thread callback invocation from ReadResponse()??