-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
25 lines (21 loc) · 783 Bytes
/
_headers
File metadata and controls
25 lines (21 loc) · 783 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
# Custom caching headers for cod.pet on Cloudflare Pages
# Cache all static asset directories aggressively (1 year, immutable)
/logo/*
Cache-Control: public, max-age=31536000, immutable
/icon/*
Cache-Control: public, max-age=31536000, immutable
/pets/*
Cache-Control: public, max-age=31536000, immutable
# Root static images
/favicon.png
Cache-Control: public, max-age=31536000, immutable
/og-image.png
Cache-Control: public, max-age=31536000, immutable
# Cache search/catalog index but require re-validation
/index.json
Cache-Control: public, max-age=604800, must-revalidate
# Keep index.html completely dynamic (0-second cache with re-validation)
/
Cache-Control: public, max-age=0, must-revalidate
/index.html
Cache-Control: public, max-age=0, must-revalidate