Repository navigation
Expand file tree
/
Copy pathnetlify.toml
More file actions
105 lines (85 loc) · 2.08 KB
/
Copy pathnetlify.toml
File metadata and controls
105 lines (85 loc) · 2.08 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[build]
command = "./scripts/build.sh"
publish = "_book"
[build.processing.html]
pretty_urls = false
[[redirects]]
from = "/.gitbook/assets/*"
to = "/assets/:splat"
status = 200
[[redirects]]
from = "/0.12/.gitbook/assets/*"
to = "/0.12/assets/:splat"
status = 200
[[redirects]]
from = "/1.0/.gitbook/assets/*"
to = "/1.0/assets/:splat"
status = 200
# follow "from .gitbook/assets" rewrite rule
[[headers]]
for = "/.gitbook/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/1.0/.gitbook/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/0.12/.gitbook/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
# weekly cache (7 * 86400)
[[headers]]
for = "/images/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/1.0/images/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/0.12/images/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/1.0/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/0.12/assets/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/gitbook/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/1.0/gitbook/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/0.12/gitbook/*"
[headers.values]
Cache-Control = "public, max-age=604800"
# for custom theme
[[headers]]
for = "/styles/*"
[headers.values]
Cache-Control = "public, max-age=86400"
[[headers]]
for = "/1.0/styles/*"
[headers.values]
Cache-Control = "public, max-age=86400"
[[headers]]
for = "/0.12/styles/*"
[headers.values]
Cache-Control = "public, max-age=86400"
# Cache search index, it cover 1.0,0.12 too
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "public, max-age=3600"