-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
30 lines (23 loc) · 844 Bytes
/
_headers
File metadata and controls
30 lines (23 loc) · 844 Bytes
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
# _headers file for Cloudflare Pages
# Security and performance headers
/*
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' ws: wss:
Cache-Control: public, max-age=31536000, immutable
# Streamlit specific headers
*.py
Cache-Control: no-cache, no-store, must-revalidate
*.json
Cache-Control: no-cache, no-store, must-revalidate
# Static assets caching
*.png
Cache-Control: public, max-age=86400
*.jpg
Cache-Control: public, max-age=86400
*.css
Cache-Control: public, max-age=86400
*.js
Cache-Control: public, max-age=86400