st2web
st2web copied to clipboard
Web UI does not refresh with a clean browser cache
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
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
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.