Skip to content

Commit 0373e60

Browse files
authored
Merge pull request #52 from PokeAPI/staging
Add Cache-Tag header/longer caching
2 parents 3412b7b + abb5d91 commit 0373e60

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

firebase.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,47 @@
44
},
55
"hosting": {
66
"public": "public",
7+
"headers": [
8+
{
9+
"source": "**/*routeInfo.json",
10+
"headers": [
11+
{
12+
"key": "Cache-Tag",
13+
"value": "website"
14+
},
15+
{
16+
"key": "Cache-Control",
17+
"value": "max-age=86400"
18+
}
19+
]
20+
},
21+
{
22+
"source": "**/*.@(css|js|png)",
23+
"headers": [
24+
{
25+
"key": "Cache-Tag",
26+
"value": "website"
27+
},
28+
{
29+
"key": "Cache-Control",
30+
"value": "max-age=86400"
31+
}
32+
]
33+
},
34+
{
35+
"source": "/",
36+
"headers": [
37+
{
38+
"key": "Cache-Tag",
39+
"value": "website"
40+
},
41+
{
42+
"key": "Cache-Control",
43+
"value": "max-age=86400"
44+
}
45+
]
46+
}
47+
],
748
"ignore": [
849
"firebase.json",
950
"**/.*",

0 commit comments

Comments
 (0)