-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
25 lines (20 loc) · 747 Bytes
/
_headers
File metadata and controls
25 lines (20 loc) · 747 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
# ☀ Helios OS — Netlify Edge Headers
# Aggressive caching for static assets, security headers for all pages
# All pages — security
/*
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()
# HTML pages — short cache so updates deploy fast
/
Cache-Control: public, max-age=300, stale-while-revalidate=600
# CSS/JS — cache hard (immutable until next build)
/static/css/*
Cache-Control: public, max-age=31536000, immutable
/static/js/*
Cache-Control: public, max-age=31536000, immutable
# Images — cache hard
/static/img/*
Cache-Control: public, max-age=31536000, immutable