-
Notifications
You must be signed in to change notification settings - Fork 2
/
firebase.json
53 lines (52 loc) · 1.34 KB
/
firebase.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"hosting": {
"public": "src",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"source": "**",
"headers": [
{"key": "X-Frame-Options", "value": "SAMEORIGIN"},
{"key": "X-Content-Type-Options", "value": "nosniff"},
{"key": "X-UA-Compatible", "value": "ie=edge"},
{"key": "X-XSS-Protection", "value": "1; mode=block"}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|webp|ogg|mp3|woff|woff2)",
"headers": [
{"key": "Cache-Control", "value": "max-age=31556926, public"}
]
},
{
"source": "**/*.@(json|xml|css|mjs|js)",
"headers": [
{"key": "Cache-Control", "value": "max-age=3600, public"}
]
},
{
"source": "**/*.@(html|htm|appcache|webapp)",
"headers": [
{"key": "Cache-Control", "value": "max-age=1, private, no-store, no-cache, must-revalidate, no-transform"}
]
},
{
"source": "**/*service-worker.@(js|mjs)",
"headers": [
{"key": "Cache-Control", "value": "max-age=1, private, no-store, no-cache, must-revalidate"}
]
}
],
"redirects": [
{
"source": "**/index.html",
"destination": "/",
"type": 301
}
]
}
}