ita-social-projects / StreetCode

MIT License
17 stars 8 forks source link

[UI] [Cache] Old users see white screen instead of website. #1732

Open sashapanasiuk5 opened 1 week ago

sashapanasiuk5 commented 1 week ago

Environment: OS, browser, it's version, device (for mobile devices). Reproducible: rarely Build found: last commit from e3c78bb

Preconditions User visited website before release 1.0.0

Steps to reproduce

  1. Go to any page

Actual result The white screen is apeared

Expected result The page is successfully loaded

Labels to be added "Bug", Priority ("pri: high"), Severity ("severity: "), Type ("UI")

sashapanasiuk5 commented 1 week ago

Possible solutions:

  1. Clear all cache after each new build. We can compare build version from local storage with version stored on the VM ( api call to get version). If build versions are different, cache must be cleaned.
  2. Hot fix. Disable Service worker at all.
sashapanasiuk5 commented 1 week ago

Investigate how service worker works on the local environment )