-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
30 lines (26 loc) · 870 Bytes
/
Copy path_headers
File metadata and controls
30 lines (26 loc) · 870 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
# ============================================================
# EasyStack - Netlify Headers
# Security + caching best practices
# ============================================================
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=()
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-XSS-Protection: 1; mode=block
Cache-Control: public, max-age=0, must-revalidate
# Long-cache immutable build assets
/images/*
Cache-Control: public, max-age=31536000, immutable
/styles.css
/extra.css
/script.js
/extra.js
/hig.css
/hig.js
Cache-Control: public, max-age=31536000, immutable
# Never cache the service worker
/service-worker.js
Cache-Control: no-cache
Service-Worker-Allowed: /