-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathwrangler.toml
More file actions
85 lines (69 loc) · 1.72 KB
/
wrangler.toml
File metadata and controls
85 lines (69 loc) · 1.72 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
name = "factorio-prints"
compatibility_date = "2025-07-25"
[build]
command = "npm run build"
[build.upload]
directory = "dist"
[[headers]]
for = "/*"
[headers.values]
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
Referrer-Policy = "strict-origin-when-cross-origin"
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"
[[headers]]
for = "/*.jpg"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/*.jpeg"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/*.gif"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/*.svg"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "max-age=2419200"
[[headers]]
for = "/sw.ts"
[headers.values]
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"
Service-Worker-Allowed = "/"
[[headers]]
for = "/service-worker.ts"
[headers.values]
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"
Service-Worker-Allowed = "/"
[[headers]]
for = "/serviceWorker.ts"
[headers.values]
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"
Service-Worker-Allowed = "/"
# Content-hashed assets from Vite build - cache aggressively
[[headers]]
for = "/assets/*.js"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/assets/*.css"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
[[headers]]
for = "/*.html"
[headers.values]
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"
[[headers]]
for = "/*.json"
[headers.values]
Cache-Control = "max-age=0, no-cache, no-store, must-revalidate"