validate service worker on every request
This commit is contained in:
parent
a3b668587d
commit
7967891e99
|
@ -46,6 +46,15 @@ module.exports = withPlausibleProxy()({
|
|||
...corsHeaders
|
||||
]
|
||||
},
|
||||
// never cache service worker
|
||||
// https://stackoverflow.com/questions/38843970/service-worker-javascript-update-frequency-every-24-hours/38854905#38854905
|
||||
{
|
||||
source: '/sw.js',
|
||||
headers: [{
|
||||
key: 'Cache-Control',
|
||||
value: 'no-cache'
|
||||
}]
|
||||
},
|
||||
{
|
||||
source: '/api/lnauth',
|
||||
headers: [
|
||||
|
|
Loading…
Reference in New Issue