PrefectHQ / legacy-ui

The home of the Prefect 1 UI
https://cloud.prefect.io
Other
179 stars 42 forks source link

BUG: Browser Cache after Update #1050

Open MrJack91 opened 3 years ago

MrJack91 commented 3 years ago

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

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"
  2. in the ui you will not see these changes always.

Browsers Tested:

concreted commented 3 years ago

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.

zhen0 commented 3 years ago

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