-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
60 lines (45 loc) · 2.32 KB
/
Copy path_headers
File metadata and controls
60 lines (45 loc) · 2.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# CLOUDFLARE HEADERS CONFIGURATION FOR MAYTEN LANE WEBSITE
# Security, performance, and caching headers for optimal delivery
# GLOBAL SECURITY HEADERS - Applied to all pages and resources
/*
# SECURITY HEADERS
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
# CONTENT SECURITY POLICY
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' data: https:; connect-src 'self' https://www.googletagmanager.com https://*.google-analytics.com https://*.analytics.google.com; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self';
# PERMISSIONS POLICY
Permissions-Policy: geolocation=(), microphone=(), camera=(), payment=(), usb=(), magnetometer=(), gyroscope=(), accelerometer=(), ambient-light-sensor=(), autoplay=(), encrypted-media=(), fullscreen=(), picture-in-picture=(), speaker=(), sync-xhr=(), midi=(), clipboard-read=(), clipboard-write=()
# TRANSPORT SECURITY
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
# CROSS-ORIGIN ISOLATION
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
# HTML FILES - Short cache duration for frequent updates
/*.html
Cache-Control: public, max-age=1800, s-maxage=1800
# CSS FILES - Long cache duration for performance
/*.css
Cache-Control: public, max-age=31536000, s-maxage=31536000
# JAVASCRIPT FILES - Long cache duration for performance
/*.js
Cache-Control: public, max-age=31536000, s-maxage=31536000
# IMAGE FILES - Very long cache duration for static assets
/*.png
Cache-Control: public, max-age=31536000, s-maxage=31536000
/*.jpg
Cache-Control: public, max-age=31536000, s-maxage=31536000
/*.jpeg
Cache-Control: public, max-age=31536000, s-maxage=31536000
/*.ico
Cache-Control: public, max-age=31536000, s-maxage=31536000
# FONT FILES - Very long cache duration for typography
/*.woff
Cache-Control: public, max-age=31536000, s-maxage=31536000
/*.woff2
Cache-Control: public, max-age=31536000, s-maxage=31536000
# XML FILES - Medium cache duration for sitemaps
/*.xml
Cache-Control: public, max-age=86400, s-maxage=86400