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.
Response with header Cache-Control: public, max-age=10000, which was the milliseconds value specified in code.
Relevant log output
No response
Additional context
I'm not sure whether the better fix should either be to
Change the parameter units to be in Seconds or
Do the conversion from Milliseconds to Seconds when outputting the header, which has the ambiguity of whether CDNs or browsers expect non-integer values like max-age=10.5 which arises due to the unit conversion.
This is an issue with the XML documentation. If you want to, you can raise a PR that corrects the descriptions. The code resides in src/HotChocolate/Caching/src/Caching :)
Product
Hot Chocolate
Version
13.8.1
Link to minimal reproduction
https://github.com/kiangkuang/HotChocolateDemo
Steps to reproduce
What is expected?
Response with header
Cache-Control: public, max-age=10
, because the units formax-age
should be in seconds instead of milliseconds.https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#response_directives https://developers.cloudflare.com/cache/concepts/cache-control/
What is actually happening?
Response with header
Cache-Control: public, max-age=10000
, which was the milliseconds value specified in code.Relevant log output
No response
Additional context
I'm not sure whether the better fix should either be to
max-age=10.5
which arises due to the unit conversion.