-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path_headers
29 lines (25 loc) · 1.13 KB
/
_headers
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
/*/*.html
Cache-Control: public, max-age=60
Content-Security-Policy: default-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:; connect-src 'self'; font-src 'self' https://fonts.gstatic.com data:; manifest-src 'self'; prefetch-src 'self'; media-src 'self' data:; worker-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self';
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), geolocation=(), microphone=()
Strict-Transport-Security: max-age=15768000
# Cache JavaScript, CSS, SVG, TXT, and WebP files for a year
/*.js
Cache-Control: public, max-age=31536000
/*.txt
Cache-Control: public, max-age=31536000
/*.webp
Cache-Control: public, max-age=31536000
# Cache images in the /images/ folder for 2 days
/images/*
Cache-Control: public, max-age=172800
# Cache the web manifest for 2 days
/manifest.webmanifest
Cache-Control: public, max-age=172800
# Revalidated sw on every request
/sw.js
Cache-Control: max-age=0, must-revalidate, public