Repository navigation
Expand file tree
/
Copy path_headers
More file actions
105 lines (86 loc) · 3.77 KB
/
Copy path_headers
File metadata and controls
105 lines (86 loc) · 3.77 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
98
99
100
101
102
103
104
105
# Cloudflare Pages Headers Configuration
# https://developers.cloudflare.com/pages/configuration/headers/
# ===========================================
# Security Headers for ALL pages
# ===========================================
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://www.google-analytics.com https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; img-src 'self' data: https: blob:; connect-src 'self' https://api.github.com https://api.openalex.org https://en.wikipedia.org https://pt.wikipedia.org https://export.arxiv.org https://pub.orcid.org https://www.google-analytics.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-DNS-Prefetch-Control: on
X-Permitted-Cross-Domain-Policies: none
# ===========================================
# Cache Control - Static Assets (Long Cache)
# ===========================================
/images/*
Cache-Control: public, max-age=31536000, immutable
/assets/*
Cache-Control: public, max-age=31536000, immutable
/javascript/*
Cache-Control: public, max-age=31536000, immutable
/css/*
Cache-Control: public, max-age=31536000, immutable
/fonts/*
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
# ===========================================
# Cache Control - Font Files
# ===========================================
/*.woff2
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.woff
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
/*.ttf
Cache-Control: public, max-age=31536000, immutable
Access-Control-Allow-Origin: *
# ===========================================
# Cache Control - API and Dynamic Content
# ===========================================
/api/*
Cache-Control: public, max-age=3600, stale-while-revalidate=86400
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Headers: Content-Type
# ===========================================
# Cache Control - HTML Pages (Fresh content)
# ===========================================
/*.html
Cache-Control: public, max-age=0, must-revalidate
/
Cache-Control: public, max-age=0, must-revalidate
/en-US/*
Cache-Control: public, max-age=0, must-revalidate
/pt-BR/*
Cache-Control: public, max-age=0, must-revalidate
# ===========================================
# Search Index - Medium Cache
# ===========================================
/api/*/search-index.json
Cache-Control: public, max-age=3600, stale-while-revalidate=86400
Access-Control-Allow-Origin: *
# ===========================================
# Sitemap and Robots - Medium Cache
# ===========================================
/sitemap.xml
Cache-Control: public, max-age=86400
Content-Type: application/xml
/robots.txt
Cache-Control: public, max-age=86400
Content-Type: text/plain
# ===========================================
# RSS/Atom Feeds
# ===========================================
/feed.xml
Cache-Control: public, max-age=3600
Content-Type: application/rss+xml
# ===========================================
# Prevent Indexing of Development/Preview
# ===========================================
https://*.pages.dev/*
X-Robots-Tag: noindex, nofollow