Skip to content

Commit 392eee7

Browse files
committed
Create netlify.toml
1 parent b04db8b commit 392eee7

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎netlify.toml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Netlify configuration for Disease Transcriptomics Lab website
2+
# https://docs.netlify.com/configure-builds/file-based-configuration/
3+
4+
[build]
5+
# No build step — this is a plain static site
6+
publish = "."
7+
8+
# Cache static assets aggressively; HTML is revalidated on every visit
9+
[[headers]]
10+
for = "/*"
11+
[headers.values]
12+
X-Frame-Options = "DENY"
13+
X-Content-Type-Options = "nosniff"
14+
Referrer-Policy = "strict-origin-when-cross-origin"
15+
16+
[[headers]]
17+
for = "/assets/*"
18+
[headers.values]
19+
Cache-Control = "public, max-age=31536000, immutable"
20+
21+
[[headers]]
22+
for = "*.css"
23+
[headers.values]
24+
Cache-Control = "public, max-age=31536000, immutable"
25+
26+
[[headers]]
27+
for = "*.js"
28+
[headers.values]
29+
Cache-Control = "public, max-age=31536000, immutable"
30+
31+
[[headers]]
32+
for = "*.html"
33+
[headers.values]
34+
Cache-Control = "public, max-age=0, must-revalidate"
35+
36+
# Redirect bare index paths cleanly (optional but tidy)
37+
[[redirects]]
38+
from = "/index.html"
39+
to = "/"
40+
status = 301

0 commit comments

Comments
 (0)