-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
49 lines (39 loc) · 1.9 KB
/
Copy path_headers
File metadata and controls
49 lines (39 loc) · 1.9 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
# Cloudflare Pages _headers
# Security headers, cache control, and performance hints for freedevtool.org
# Default — applies to all paths
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=()
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: blob: https:; connect-src 'self' https://www.google-analytics.com https://cloudflare-dns.com https://*.google-analytics.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
Cache-Control: public, max-age=600, stale-while-revalidate=86400
# HTML pages — short cache so updates propagate quickly
/*.html
Cache-Control: public, max-age=600, stale-while-revalidate=86400
# Stylesheets — versioned via ?v= query string, safe to cache aggressively
/*.css
Cache-Control: public, max-age=2592000, immutable
# JavaScript — same as CSS
/*.js
Cache-Control: public, max-age=2592000, immutable
# Static assets — favicons, SVGs, fonts
/favicon.svg
Cache-Control: public, max-age=2592000, immutable
/og-image.svg
Cache-Control: public, max-age=2592000, immutable
# Sitemap and robots — moderate cache
/sitemap.xml
Cache-Control: public, max-age=3600
Content-Type: application/xml; charset=utf-8
/robots.txt
Cache-Control: public, max-age=14400
Content-Type: text/plain; charset=utf-8
# llms.txt — AI-readable site index, moderate cache
/llms.txt
Cache-Control: public, max-age=14400
Content-Type: text/plain; charset=utf-8
/llms-full.txt
Cache-Control: public, max-age=14400
Content-Type: text/plain; charset=utf-8