Merge pull request #3591 from akhilmhdh/fix/ui-skew

feat: added new cache control for index html
This commit is contained in:
Maidul Islam
2025-05-13 12:30:50 -04:00
committed by GitHub

View File

@@ -57,7 +57,9 @@ export const registerServeUI = async (
reply.callNotFound();
return;
}
return reply.sendFile("index.html");
// reference: https://github.com/fastify/fastify-static?tab=readme-ov-file#managing-cache-control-headers
// to avoid ui bundle skew on new deployment
return reply.sendFile("index.html", { maxAge: 0, immutable: false });
}
});
}