ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
4.96k stars 722 forks source link

HotChocolate.Caching 13.9.0 returns empty response #7054

Open kiangkuang opened 1 month ago

kiangkuang commented 1 month ago

Product

Hot Chocolate

Version

13.9.0

Link to minimal reproduction

https://github.com/kiangkuang/HotChocolateDemo/tree/13.9

Steps to reproduce

  1. Clone project
  2. Run project and query with
    query {
        book {
            title
        }
    }

What is expected?

Response with cache control headers and query result, like in version 13.8.1

image

What is actually happening?

Response with cache control headers but response is empty

image

Relevant log output

No response

Additional context

No response

tobias-tengler commented 1 month ago

I'm able to reproduce this. Looking into it.

tobias-tengler commented 1 month ago

This seems to have been broken since #6844. The snapshots even shows us that it's broken 😞 https://github.com/ChilliCream/graphql-platform/pull/6844/files#diff-2803ba1ef05352c4221908b033e53e6563c564873702b5ced27ddd6b495f0f5d

miko866 commented 5 days ago

Same probleme here. I use: .AddCacheControl() .ModifyCacheControlOptions(o => o.DefaultMaxAge = 60_000) .UseQueryCachePipeline()

HotChocolate.AspNetCore - 13.9.3 HotChocolate.Caching - 13.9.3