See the best posts from any Bluesky account
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix profile page caching for authenticated users

Disable caching for authenticated users (private, no-store) to prevent
stale viewer like/repost state. Add Vary: Cookie so the transition
between signed-in and signed-out serves the correct response.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -1
+2 -1
app/controllers/profile_controller.ts
··· 350 350 const daysQs = daysWindow ? `?days=${daysWindow}` : '' 351 351 const canonicalUrl = `${appUrl}/profile/${canonicalHandle}/${kind}${daysQs}` 352 352 353 - response.header('Cache-Control', isAuthenticated ? 'private, max-age=60' : 'public, max-age=60') 353 + response.header('Cache-Control', isAuthenticated ? 'private, no-store' : 'public, max-age=60') 354 + response.header('Vary', 'Cookie') 354 355 return view.render('pages/profile/show', { 355 356 handle: canonicalHandle, 356 357 displayName: profile.displayName,