-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
43 lines (30 loc) · 956 Bytes
/
Copy path_headers
File metadata and controls
43 lines (30 loc) · 956 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
31
32
33
34
35
36
37
38
39
40
41
42
43
# Cloudflare Pages — políticas de caché
# HTML: siempre revalidar (los cambios se ven al instante).
# Assets versionados (_astro/* con ?vYYYYMMDD): cache largo + immutable.
# Imágenes: cache largo (nombres keyword-rich, rara vez se sobrescriben).
/_astro/*
Cache-Control: public, max-age=31536000, immutable
/img/*
Cache-Control: public, max-age=31536000
/*.webp
Cache-Control: public, max-age=31536000
/*.avif
Cache-Control: public, max-age=31536000
/*.jpg
Cache-Control: public, max-age=31536000
/*.png
Cache-Control: public, max-age=31536000
/*.svg
Cache-Control: public, max-age=2592000
/favicon.svg
Cache-Control: public, max-age=2592000
/cdn-cgi/*
Cache-Control: public, max-age=31536000, immutable
/sitemap.xml
Cache-Control: public, max-age=3600
/robots.txt
Cache-Control: public, max-age=3600
/*.html
Cache-Control: public, max-age=0, must-revalidate
/
Cache-Control: public, max-age=0, must-revalidate