forked from swapagarwal/swag-for-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
36 lines (30 loc) · 1.12 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
[build]
publish = "dist"
command = "npm run build"
[build.environment]
NODE_VERSION = "10"
NPM_VERSION = "6.4.1"
[[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