Abhishek
Abhishek

Reputation: 47

Hard reload in GWT with clear cache

I looked into the code of GWT. Window.Location.reload() doesn't seem to accept an argument and by default refreshes browser with cache. I wanted to reload the browser without cache. What are the ways to do in GWT? Something equivalent to Location.reload(true) of javascript in GWT. I'm fine with any solution which refreshes browser without cache.

Upvotes: 2

Views: 652

Answers (1)

Thomas Broyer
Thomas Broyer

Reputation: 64541

How about using JSNI?

public static native void hardReload() /*-{
  $wnd.location.reload(true);
}-*/;

Upvotes: 2

Related Questions