Welcome Guest Search | Active Topics | Sign In | Register

Problem with caching (webbrowser) Options
Peter
Posted: Friday, December 5, 2014 4:44:20 PM
Rank: Newbie
Groups: Member

Joined: 12/5/2014
Posts: 5
I have the RunTime.CachePath set, and the browser is indeed saving files into the folder, but it's never actually using them. Every time it visits another page, it creates an identical entry in the cache path but with a different name. How can I get the caching to actually work?

An important note is that I have the browser pointed to a local web server I wrote entirely custom (for a variety of reasons). I've tried setting an Etag in the response header and the browser is correctly sending the If-None-Match header with the corresponding Etag but that doesn't help the cache problem. Do I need to form the header differently?

Another important note is that all of the links it's having problems with are relative, and not absolute... BUT the files those pages are using ARE the same exact file in the same exact place, they're just referenced differently in each page because each page is in it's own folder, so the relative path to them is different. Would using absolute paths help?
eo_support
Posted: Saturday, December 6, 2014 3:38:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You might want to try using Google Chrome to visit your server, or using EO.WebBrowser to visit another server to see whether the cache is working properly. EO.WebBrowser is compiled from Google Chrome's source code and we do not know all the details either. Even if it does not work as expected, we are usually not in a position to fix it either --- we will usually wait for the Chrome team to fix it first. In another word, our focus is integration, not the browser engine itself.

If you do believe the problem is introduced in our integration part, then you can try to isolate the problem into a test project and send the test project to us. You can see more details on how to send test project to us here:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Peter
Posted: Monday, December 8, 2014 2:42:51 PM
Rank: Newbie
Groups: Member

Joined: 12/5/2014
Posts: 5
I managed to figure it out. The problem was the response header. I needed to send a different HTTP code (304 Not Modified) for the browser to actually use the cache along with checking the Etag and the last modified date. It works now.
eo_support
Posted: Monday, December 8, 2014 4:17:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Glad to hear that you got it working. Thank you very much for sharing your findings!


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.