Skip to content

Commit 3c464d8

Browse files
Stabilize RSS caching and Fly scale.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e3f0cb2 commit 3c464d8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

fly.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ swap_size_mb = 512
1515

1616
[vm]
1717
cpu_kind = "shared"
18-
cpus = 1
19-
memory_mb = 2048
18+
cpus = 2
19+
memory_mb = 4096
2020

2121
[[mounts]]
2222
source = "data_machines"

services/site/app/routes/blog_/rss[.]xml.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function loader({ request }: Route.LoaderArgs) {
4242
headers: {
4343
'Content-Type': 'application/xml',
4444
'Content-Length': String(Buffer.byteLength(rss)),
45+
'Cache-Control':
46+
'public, max-age=600, s-maxage=2400, stale-while-revalidate=86400',
4547
},
4648
})
4749
}

0 commit comments

Comments
 (0)