Skip to content

Commit b0baf19

Browse files
Kevin Tamglorat
authored andcommitted
fix: no cache of index/sw
1 parent 6790879 commit b0baf19

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

firebase.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,26 @@
1111
"source": "**",
1212
"destination": "/index.html"
1313
}
14+
],
15+
"headers": [
16+
{
17+
"source": "index.html",
18+
"headers": [
19+
{
20+
"key": "Cache-Control",
21+
"value": "max-age=0"
22+
}
23+
]
24+
},
25+
{
26+
"source": "/sw.js",
27+
"headers": [
28+
{
29+
"key": "Cache-Control",
30+
"value": "no-cache"
31+
}
32+
]
33+
}
1434
]
1535
},
1636
"firestore": {

0 commit comments

Comments
 (0)