-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_headers
More file actions
97 lines (76 loc) · 2.46 KB
/
_headers
File metadata and controls
97 lines (76 loc) · 2.46 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# GGUF Loader Website - Netlify Headers Configuration
# Headers for optimal caching and performance on Netlify
# Global headers
/*
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: geolocation=(), microphone=(), camera=()
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.google-analytics.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: https:; connect-src 'self' https://www.google-analytics.com; frame-src https://www.youtube.com;
# HTML files - 1 hour cache
/*.html
Cache-Control: public, max-age=3600
Vary: Accept-Encoding
# CSS and JavaScript - 1 year cache (immutable)
/*.css
Cache-Control: public, max-age=31536000, immutable
Vary: Accept-Encoding
/*.js
Cache-Control: public, max-age=31536000, immutable
Vary: Accept-Encoding
# Images - 1 week cache
/*.jpg
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.jpeg
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.png
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.gif
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.webp
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.avif
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.svg
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
/*.ico
Cache-Control: public, max-age=604800
Vary: Accept-Encoding
# Fonts - 1 year cache (immutable)
/*.woff
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.woff2
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.ttf
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.otf
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.eot
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
# Manifest and service worker
/manifest.json
Cache-Control: public, max-age=86400
/sw.js
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
# API endpoints (if any)
/api/*
Cache-Control: no-cache, no-store, must-revalidate
# Documentation pages - shorter cache
/docs/*
Cache-Control: public, max-age=3600
Vary: Accept-Encoding