|
Rank: Newbie Groups: Member
Joined: 8/8/2016 Posts: 3
|
We were using EO Browser 16.1.39 and everything is working well except the refresh issue that is preventing us from releasing our software. When we launch the EO Browser form, the browser has the tendency to show the previously shown page. When I shake the page around for a while, the page refreshes and shows the correct page.
I commented out the cache line in the form's constructor //EO.WebBrowser.Runtime.CachePath = "cache"; To no avail. Even though this is supposed to prevent caching, I still see the previously shown page when I launch a new instance of the EO Browser.
Reloading the page on webcontrol_Paint using ignoreCache = true for the webview reload method, reduced the instances of cached pages, but it did not completely fix the problem.
Suppressing caching in the web application did not help.
Upgrading to the latest 16.1.68, did not help either.
Please help, this is preventing management from releasing functionality our customers are waiting for.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You should not rely on the browser engine to always skip cache. The most effective way to skip cache is:
1. To specify specific no cache instructions from your server when it sends down response to the client; 2. Use an HTTP POST instead of an HTTP GET;
Using either of the above method should bypass the cache.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 8/8/2016 Posts: 3
|
I implemented no caching in my MVC Controller methods. I am also using Post methods for all methods where it is possible. No go.
I also implemented Custom EO Browser Handlers for some custom features I needed, they were not working. Then we started invalidating the web control on Form paint and Dialog show. Also on web control paint, we are reloading the content while ignoring cache.
This alleviates the situation and my Custom EO Browser Handlers are working, but the from time to time, I still see the wrong page show up in the EO Browser. Adding a watch on the URL seen by the Custom EO Broser Handler, I can see that we show the Form containing the EO Browser, passing in a specific URL, but EO Browser passes some other cached page along to the web page.
What can we do to tell EO Browser to stop caching pages? I want no caching what so ever. I need EO Browser to show the URL we send to it, not a URL it has seen previously.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, First please try to clarify is caching not working with regular HTTP request, or with custom resource handler? These belongs to two different categories because the underlying logic are significantly different. For regular HTTP request, using post alone should be able to skip cache. If this is not what you see, then there definitely is a problem somewhere. In that case you can try to isolate the problem into a test app and send the test app to us. You may want to put your MVC app online so that we can access it from here with your test app. We will look further as soon as we have the test app. See here for how to send test app to us: http://www.essentialobjects.com/forum/test_project.aspxFor custom resource request, the easiest way for you to avoid cache is to use a different Url every time (such as adding time stamp into the Url). Calling Reload in OnPaint is extremely excessively and unnecessary and can cause other problems. So we would highly recommend against it. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 8/8/2016 Posts: 3
|
To clarify: 1) This is not a problem with caching not working. This is not a problem with Custom Resource Handler not working. 2) Using post will not help in this case.
When we show the EO Browse it was showing the previously shown page.
I fixed the problem by disposing of the browser between each transaction. By doing this, all my issues went away.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Thanks for the update. We are not sure why this occurs. If you can send us a test project we will be happy to investigate further.
|
|