mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-07 17:36:35 +00:00
Change networkFirst to networkOnly
This commit is contained in:
parent
904c3db3ea
commit
2596d2ba52
@ -94,12 +94,12 @@ gulp.task('gen-service-worker', () => {
|
||||
{ // Get static, api, and local (and home-assistant-polymer in dev mode) from network.
|
||||
// Use cache only if Home Assistant server is unreachable.
|
||||
urlPattern: '/(home-assistant-polymer|static|api|local)/*',
|
||||
handler: 'networkFirst',
|
||||
handler: 'networkOnly',
|
||||
},
|
||||
{ // Get manifest and service worker from network.
|
||||
// Use cache only if Home Assistant server is unreachable.
|
||||
urlPattern: '/(service_worker.js|manifest.json)',
|
||||
handler: 'networkFirst',
|
||||
handler: 'networkOnly',
|
||||
},
|
||||
{ // For rest of the files (on Home Assistant domain only) try both cache and network/
|
||||
// First access might bring stale data from cache, but a single refresh will bring updated
|
||||
|
Loading…
x
Reference in New Issue
Block a user