forked from swapagarwal/swag-for-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
32 lines (27 loc) · 1.06 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
[build]
publish = "dist"
command = "npm run build"
[[redirects]]
from = "/hacktoberfest"
to = "/?tags=hacktoberfest"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "SAMEORIGIN"
Referrer-Policy = "strict-origin-when-cross-origin"
X-XSS-Protection = "1; mode=block"
Feature-Policy = "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'"
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
[[headers]]
for = "/assets/swag-img/*"
[headers.values]
Cache-Control = "public max-age=63072000" # 2 years cache for all assets since they're cachebusted
[[headers]]
for = "/assets/js/*"
[headers.values]
Cache-Control = "public max-age=63072000" # 2 years cache for all assets since they're cachebusted
[[headers]]
for = "/assets/css/*"
[headers.values]
Cache-Control = "public max-age=63072000" # 2 years cache for all assets since they're cachebusted