Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit c5855b8

Browse files
fix: cache and access control
1 parent fa33c7e commit c5855b8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

site/firebase.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,48 @@
77
"source": "**",
88
"destination": "/index.html"
99
}
10+
],
11+
"headers": [
12+
{
13+
"source": "assets/icons/**/*",
14+
"headers": [
15+
{
16+
"key": "Access-Control-Allow-Origin",
17+
"value": "*"
18+
},
19+
{
20+
"key": "Cache-Control",
21+
"value": "max-age=31536000"
22+
}
23+
]
24+
},
25+
{
26+
"source": "assets/img/shapes/*",
27+
"headers": [
28+
{
29+
"key": "Access-Control-Allow-Origin",
30+
"value": "*"
31+
}
32+
]
33+
},
34+
{
35+
"source": "assets/img/**/*",
36+
"headers": [
37+
{
38+
"key": "Cache-Control",
39+
"value": "max-age=31536000"
40+
}
41+
]
42+
},
43+
{
44+
"source": "**/*.@(js|css)",
45+
"headers": [
46+
{
47+
"key": "Cache-Control",
48+
"value": "max-age=31536000"
49+
}
50+
]
51+
}
1052
]
1153
}
1254
}

0 commit comments

Comments
 (0)