Sync issue on first load

Gnetwork

Member
@appyet
There is a strange Sync issue within the framework. As example: If you logout on a html page via Web Module and you start the app on the next day the site will be from the cache and not automaticly new loaded. This is hard to deal for dynamic sites. A fix would be great ..
 

joseph raphael

Well-Known Member
@appyet
There is a strange Sync issue within the framework. As example: If you logout on a html page via Web Module and you start the app on the next day the site will be from the cache and not automatically new loaded. This is hard to deal for dynamic sites. A fix would be great ..

This is normal for the Android system webview v41+. You can apply a javascript to do so
Code:
location.reload(true);
it will clear the cache on refresh.
 

Gnetwork

Member
Hi again,

nope this is not working. The reason for this is that the site will be within the app. When the app starts the data came out from the cache. This is defently an App issue, the app should refresh the current page on every startup. It is not easy possible within a html or php page.
 

larryhems

New Member
history.go(0);

The History interface allows manipulation of the browser session history , that is the pages visited in the tab or frame that the current page is loaded in.

There are multiple ways to refresh/reload a page with jQuery/JavaScript, some are:

  • location.href = location.href
  • location.replace(location.pathname)
  • window.location = window.location
  • window.self.window.self.window.window.location = window.location
 
Top