Element-web: i18n can still go wrong

Created on 2 Mar 2020  路  7Comments  路  Source: vector-im/element-web

All 7 comments

If it's caused by missing cache, one way to prevent this would be to make all of the assets available offline through our service worker. This would also preload icons, etc. The hardest part probably being creating a list of all of our assets (during build) without causing a maintenance headache, although we might be able to get rid of the content hashes with this approach.

There's https://www.npmjs.com/package/serviceworker-webpack-plugin to auto-populate it with a blacklist

Probably best to keep the content hashes though, in case the browser removes your cache but not your (outdated) service worker, you'd end up rerequesting but getting the asset for a newer version.

I'm getting reports on this on app.element.io (i.e. not to do with cachebusting going wrong, unless it happened to coincide with a release getting pushed)?

@ara4n And BTW, this is me from the email report on this issue.

We had to pull it back out due to other issues it caused: https://github.com/vector-im/element-web/pull/15352

Got it twice this week, once on Firefox Stable and once on Firefox Nightly, both times on app.element.io, both times when starting Firefox. In both cases, a reload fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arthurlutz picture arthurlutz  路  3Comments

turt2live picture turt2live  路  3Comments

richvdh picture richvdh  路  3Comments

niedzielski picture niedzielski  路  3Comments

t3chguy picture t3chguy  路  3Comments