We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWAアプリのアップデートについて
PWAのアプリは基本的にはブラウザと同様で、画面を表示する際にキャッシュを優先するそう。 おそらくブラウザと同じキャッシュを参照しているようなので、逆に言えばブラウザのキャッシュが削除または更新されない限り PWA 側も更新されない。(PWA のリソースは Service Workerによってキャッシュされている)
The text was updated successfully, but these errors were encountered:
SWの更新
async callback() { if (!('serviceWorker' in window.navigator)) { console.log(1) return } const registration = await window.navigator.serviceWorker.getRegistration() if (!registration) { console.log(2) return } registration.onupdatefound = async () => { console.log(3) await registration.update() } }
Sorry, something went wrong.
No branches or pull requests
PWAアプリのアップデートについて
PWAのアプリは基本的にはブラウザと同様で、画面を表示する際にキャッシュを優先するそう。
おそらくブラウザと同じキャッシュを参照しているようなので、逆に言えばブラウザのキャッシュが削除または更新されない限り PWA 側も更新されない。(PWA のリソースは Service Workerによってキャッシュされている)
--> PWA をインストールしたのにブラウザを起動しないと更新できないというのは少し本末転倒感
The text was updated successfully, but these errors were encountered: