Welcome Guest Search | Active Topics | Sign In | Register

Can the client cache static files when no ETAG or Last-Modified header is present? Options
Dino
Posted: Tuesday, July 25, 2017 9:21:05 AM
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
eo_support
Posted: Tuesday, July 25, 2017 10:03:45 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.