Skip to content

Commit a05603f

Browse files
committed
refactor: extend to staging env
1 parent 5d19553 commit a05603f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

firebase.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"public": "public",
77
"headers": [
88
{
9-
"regex": "https://pokeapi.co/.*/routeInfo.json",
9+
"regex": "https://(staging\\.)?pokeapi.co/.*routeInfo.json",
1010
"headers": [
1111
{
1212
"key": "Cache-Tag",
@@ -30,6 +30,19 @@
3030
"value": "max-age=86400"
3131
}
3232
]
33+
},
34+
{
35+
"source": "https://staging.pokeapi.co/**/*.@(css|js|png)",
36+
"headers": [
37+
{
38+
"key": "Cache-Tag",
39+
"value": "website"
40+
},
41+
{
42+
"key": "Cache-Control",
43+
"value": "max-age=86400"
44+
}
45+
]
3346
}
3447
],
3548
"ignore": [

0 commit comments

Comments
 (0)