-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
32 lines (25 loc) · 845 Bytes
/
_headers
File metadata and controls
32 lines (25 loc) · 845 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
31
32
# Cache configuration for static assets
# This file is used by Netlify and other modern hosting platforms
# Cache images for 1 year (immutable content)
/assets/images/*
Cache-Control: public, max-age=31536000, immutable
# Cache CSS and JS for 1 year (versioned files)
/assets/css/*
Cache-Control: public, max-age=31536000, immutable
/assets/js/*
Cache-Control: public, max-age=31536000, immutable
# Cache fonts for 1 year
/assets/fonts/*
Cache-Control: public, max-age=31536000, immutable
# HTML pages - cache for 1 hour, revalidate
/*.html
Cache-Control: public, max-age=3600, must-revalidate
# Root HTML
/
Cache-Control: public, max-age=3600, must-revalidate
# Security headers
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin