-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnetlify.toml
More file actions
45 lines (38 loc) · 1.2 KB
/
Copy pathnetlify.toml
File metadata and controls
45 lines (38 loc) · 1.2 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
[build]
command = "make netlify-build"
publish = "build/site"
[[redirects]]
from = "/home/stable/reference/*"
to = "https://hub.stackable.tech/crds"
status = 301
# The internal module is deleted on main but still exists on the release
# branches; this blocks it for every published version without backports.
[[redirects]]
from = "/home/:version/internal/*"
to = "/404"
status = 404
force = true
[[redirects]]
from = "/home/stable/release_notes.html"
to = "/home/stable/release-notes"
status = 301
# The css and js file names carry a content hash, so they can be cached
# forever; fonts and images keep stable names and get moderate lifetimes.
# The rules are deliberately non-overlapping: netlify applies every matching
# header rule, and overlapping rules would emit duplicate Cache-Control.
[[headers]]
for = "/_/css/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/_/js/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/_/font/*"
[headers.values]
Cache-Control = "public, max-age=604800"
[[headers]]
for = "/_/img/*"
[headers.values]
Cache-Control = "public, max-age=86400"