AiursoftWeb / Kahla.App

Kahla is a cross-platform business messaging app.
https://www.kahla.app
MIT License
415 stars 85 forks source link

Upgrade failed with service-worker getting files from cache. #803

Closed Anduin2017 closed 4 years ago

Anduin2017 commented 4 years ago

[//]: <Don't delete any header! Please fill out the form or your bug report will not be considered!>

Environment

How to repro

And then this alert will always show until you press Ctrl + F5

image

Expected situation

I expect that when I click refresh and everything is up to date.

Other information

Nothing.

Anduin2017 commented 4 years ago

I guess that we can get files with something append the URL. For example, for file: style.css, we can get it via: style.css?version=3.9.2 to prevent cache.

Anduin2017 commented 4 years ago

image

From response headers, the server already supports the ETag cache refresh.