-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathnetlify.toml
More file actions
31 lines (27 loc) · 815 Bytes
/
netlify.toml
File metadata and controls
31 lines (27 loc) · 815 Bytes
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
# Required for WASM multi-threading (SharedArrayBuffer)
[[headers]]
for = "/*"
[headers.values]
Cross-Origin-Opener-Policy = "same-origin"
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Resource-Policy = "same-site"
# Cache WASM files for 1 year (they have content hashes)
[[headers]]
for = "/*.wasm"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Cache JS bundles for 1 year (they have content hashes)
[[headers]]
for = "/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# Cache CSS for 1 year
[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
# SPA routing - serve index.html for all routes
[[redirects]]
from = "/*"
to = "/index.html"
status = 200