ui icon indicating copy to clipboard operation
ui copied to clipboard

BUG: Browser Cache after Update

Open MrJack91 opened this issue 4 years ago • 2 comments

Bug Description Some Information are hard cached in the UI (the seconds parts shows the temporarily solution):

  • apollo_url -> clear full site data
  • list of tasks -> ctrl+f5
  • version numbers in the left side panel at the bottom -> ctrl+f5

We had this problem over some upgrades. Not sure when it started, but clients still use the old GUI.

Steps To Reproduce

  1. upgrade ui (& server) - we use prefect server start
  • or change the apollo url in the config.toml
[server]
  [server.ui]
  apollo_url="https://tst.cdwh.uhbs.ch:443/graphql"
  1. in the ui you will not see these changes always.

Browsers Tested:

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge
  • [ ] IE

MrJack91 avatar Sep 16 '21 07:09 MrJack91

I am also seeing this issue (have tried on Docker tag prefecthq/ui:core-0.15.5). I am seeing the Apollo URL stored in localStorage under a <timestamp>_server_url key. localStorage.clear() works to refresh the Apollo URL, but would be better if it can be automatically refreshed.

concreted avatar Sep 22 '21 19:09 concreted

Relevant slack discussion: https://prefect-community.slack.com/archives/C014Z8DPDSR/p1631777113319300

zhen0 avatar Sep 23 '21 19:09 zhen0