diff --git a/packages/astro/src/core/preview/index.ts b/packages/astro/src/core/preview/index.ts index 86ed88af3f..b686cf3f97 100644 --- a/packages/astro/src/core/preview/index.ts +++ b/packages/astro/src/core/preview/index.ts @@ -33,6 +33,7 @@ export default async function preview(config: AstroConfig, { logging }: PreviewO /** Base request URL. */ let baseURL = new URL(config.buildOptions.site || '/', defaultOrigin); const staticFileServer = sirv(fileURLToPath(config.dist), { + dev: true, etag: true, maxAge: 0, });