st2web icon indicating copy to clipboard operation
st2web copied to clipboard

Web UI does not refresh with a clean browser cache

Open VineeshJain opened this issue 5 years ago • 1 comments

UI does not auto-refresh if any actions are run from outside. This only happens if the UI is launched once the browser cache/cookies are all cleaned up.

Here are the steps to reproduce the issue:

1/ Open Firefox, with a blank page. Clear all history, cache, everything. Restart Firefox (current GA version) 2/ Go to https://<st2_ip>/, login. 3/ Open SSH session. Run st2 run core.local cmd=date. Run it a few times. 4/ Watch history tab in background. Observe that it does not update with recent executions. 5/ Go to Firefox. Refresh the page. See that recent executions are now displayed 6/ Go back to CLI. Run st2 run core.local cmd=date again. 7/ See that Firefox is now updating to show those new executions without needing to reload the page

image

Check out above. Firefox on the left, Chrome in the middle, terminal on the right.

When I run the action via CLI, it promptly shows up on Chrome. It does not show up on Firefox.

But the key thing here is that if I manually refresh the tab in firefox, it then starts auto-refreshing

VineeshJain avatar Apr 18 '19 22:04 VineeshJain

I encounter the same behavior on Chrome Version 75.0.3770.100 (Official Build) (64-bit).

I also use the workaround of a refresh to fix this behavior.

namachieli avatar Jun 25 '19 16:06 namachieli