Skip to content

Enabling Server-Timing causes issues on .NET 6 #631

Open

Description

@aluhrs13

When enabling Server-Timing on .NET 6, the content of page seems to be sent prematurely, the sample page only loads:

image

Repro is fairly simple - main...aluhrs13:MiniProfiler-dotnet:main - it seems like the problem is the call to context.Response.AppendTrailer in MiniProfilerMiddleware.cs is the key point. Changing it to a barebones context.Response.AppendTrailer("Server-Timing", "missedCache"); still repros.

I don't know enough about the internals of HttpContext to go deeper 😢

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions