-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
netlify.toml
93 lines (75 loc) · 2.35 KB
/
netlify.toml
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
[Settings]
ID = "327af24a-1868-47c1-959c-7c0afe3b1891"
[build]
publish = "public"
command = "hugo --gc --minify"
[build.environment]
NODE_VERSION = "18"
NODE_ENV = "production"
HUGO_VERSION = "0.140.2"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "false"
[[headers]]
for = "/*"
[headers.values]
Cache-Control = "public, max-age=3600" # 1h for analytics
[[headers]]
for = "*.html"
[headers.values]
Cache-Control = "public, max-age=3600" # 1h for analytics
[[headers]]
for = "*.json"
[headers.values]
Cache-Control = "public, max-age=1209600, must-revalidate, stale-while-revalidate=86400" # 2w
[[headers]]
for = "*.css*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "*.js*"
[headers.values]
Cache-Control = "public, max-age=1209600" # 2w
[[headers]]
for = "favicon.ico"
[headers.values]
Cache-Control = "public, max-age=14515200, must-revalidate" # 6m
[[headers]]
for = "*.jpg"
[headers.values]
Cache-Control = "public, max-age=2419200, must-revalidate, stale-while-revalidate=86400"
[[headers]]
for = "*.png"
[headers.values]
Cache-Control = "public, max-age=2419200, must-revalidate, stale-while-revalidate=86400"
[[headers]]
for = "*.webp"
[headers.values]
Cache-Control = "public, max-age=2419200, must-revalidate, stale-while-revalidate=86400"
[[headers]]
for = "*.svg"
[headers.values]
Cache-Control = "public, max-age=2419200, must-revalidate, stale-while-revalidate=86400"
# [[edge_functions]]
# function = "block-bots"
# path = "/*"
[[redirects]]
from = "https://recommandations-medicales.netlify.app/*"
to = "https://recomedicales.fr/:splat"
status = 301
force = true
[[redirects]]
from = "https://recomedicales.fr/recommandations/violences-conjugales/"
to = "https://recomedicales.fr/recommandations/violences-femmes/"
status = 301
[[redirects]]
from = "https://recomedicales.fr/recommandations/remboursement-psychologue-monparcourspsy/"
to = "https://recomedicales.fr/recommandations/remboursement-psychologue-monsoutienpsy/"
status = 301
[[redirects]]
from = "https://recomedicales.fr/recommandations/monkeypox/"
to = "https://recomedicales.fr/recommandations/mpox/"
status = 301
# [[plugins]]
# package = "netlify-plugin-inline-critical-css"
# [plugins.inputs]
# directoryFilter = ["!annees", "!specialites", "!tags"]