Skip to content

X-MS-COLDSTART header not set in Flex #11053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RohitRanjanMS opened this issue May 5, 2025 · 0 comments · May be fixed by #11074
Open

X-MS-COLDSTART header not set in Flex #11053

RohitRanjanMS opened this issue May 5, 2025 · 0 comments · May be fixed by #11074

Comments

@RohitRanjanMS
Copy link
Member

RohitRanjanMS commented May 5, 2025

I’ve noticed a different behavior in Flex with respect to how we detect cold start compared to Windows Consumption. When testing with Windows Consumption, I see the X-MS-COLDSTART header in the request, but in Flex, this header isn’t set.
I typically add a tag if the request is a cold start, but since the header is missing, request.IsColdStart() returns false. This also means we will miss this log as coldStartData will be null.

The header is windows only and is set by MinIYarp on the worker.

Proposal: Set the header during specialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant