Rank: Newbie Groups: Member
Joined: 5/12/2017 Posts: 2
|
Hi,
Is there a way to tell the engine to cache static files(js/images) even if there is no Etag/Last-Modified header in a response from the server?
We are migrating our integrated browser from IE.WebBrowser to EO.WebBrowser but our clients noticed that the loading of the pages were slower since we did the migration.
After investigation we noticed that with EO.WebBrowser all static pages we refetched from the server everytime and that they weren't with the IE.WebBrowser when no Etag or Last-Modified header was present in the response.
Can we change the default behavior of the engine to cache the files by default? We are aware this might cause a loading of deprecated file, but we are doing a CleanUpCacheFolders everytime we start our application.
This is a sample response header from one of the static file that is not cached.
HTTP/1.1 200 OK Date: Tue, 25 Jul 2017 12:56:25 GMT Server: Apache/2.4.18 (Ubuntu) Access-Control-Allow-Origin: * Set-Cookie: _locale=fr; path=/; HttpOnly Content-Encoding: gzip Connection: close Transfer-Encoding: chunked Content-Type: application/javascript Strict-Transport-Security: max-age=15768000
On some other sites we access where the Etag or Last-Modified header is present in the response caching works perfectly.
Thanks in advance.
Dino
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Hi,
You may want to test this on Chrome browser first. Since EO.WebBrowser is built from the same source code as Google Chrome browser, it should have exactly the same caching behavior. As such you can try to get the page working with Google Chrome browser first. If after that you still notice that EO.WebBrowser behaves differently than Google Chrome browser, we will be happy to investigate further.
Thanks!
|