mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 20:27:12 +00:00
Merge pull request #3591 from akhilmhdh/fix/ui-skew
feat: added new cache control for index html
This commit is contained in:
@@ -57,7 +57,9 @@ export const registerServeUI = async (
|
|||||||
reply.callNotFound();
|
reply.callNotFound();
|
||||||
return;
|
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 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user