-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
Add Vary + s-maxage to CacheControl directive for efficient CDN caching #6047
Conversation
src/HotChocolate/Caching/src/Caching/Types/CacheControlDirective.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Caching/src/Caching/CacheControlConstraintsOptimizer.cs
Outdated
Show resolved
Hide resolved
src/HotChocolate/Caching/src/Caching/CacheControlConstraintsOptimizer.cs
Outdated
Show resolved
Hide resolved
@tobias-tengler I rebased this PR on main, as I think the old target branch got stale? Have you had the chance to have a look at this PR? Thanks! |
HotChocolate.AspNetCore.Subscriptions.GraphQLOverWebSocket.WebSocketProtocolTests.Send_Pong_With_Payload [FAIL] |
Kudos, SonarCloud Quality Gate passed! |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #6047 +/- ##
==========================================
+ Coverage 79.00% 79.33% +0.32%
==========================================
Files 2915 2915
Lines 140092 140092
==========================================
+ Hits 110681 111138 +457
+ Misses 29411 28954 -457
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here. |
8a97a79
to
e2d2300
Compare
@tobias-tengler is there still interest in this? I could rebase/merge master but we since implemented this in our application side. Happy to help move this to HC if there is value in it though. I suppose #7054 needs to be fixed first anyhow. That one is BTW blocking us from upgrading past HC 13.8. |
@rickardp I will check with the team this week what the status is on this ... sorry for the delay here. |
Thank you for fixing #7054! Happy to rebase this if there is interest in it |
Can you rebase it ... V14 is essentially done and we want to take this in for 15 .... so if you rebase it to the current main we can start integrating this. Sorry that this took so long on our side but with shifting priorities sometimes you loose the focus on a PR. |
I changed this to a draft for now. |
372958f
to
a7d8a79
Compare
a7d8a79
to
ed627db
Compare
ed627db
to
157620a
Compare
cb2f115
to
9adc0d8
Compare
@michaelstaib Updated this PR and added a few more clarifying unit tests |
src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectFieldDescriptorExtensions.cs
Outdated
Show resolved
Hide resolved
…jectFieldDescriptorExtensions.cs
...HotChocolate/Caching/src/Caching/Extensions/CacheControlInterfaceTypeDescriptorExtensions.cs
Outdated
Show resolved
Hide resolved
…terfaceTypeDescriptorExtensions.cs
src/HotChocolate/Caching/src/Caching/Extensions/CacheControlObjectTypeDescriptorExtensions.cs
Outdated
Show resolved
Hide resolved
…jectTypeDescriptorExtensions.cs
src/HotChocolate/Caching/src/Caching/Extensions/CacheControlUnionTypeDescriptorExtensions.cs
Outdated
Show resolved
Hide resolved
…ionTypeDescriptorExtensions.cs
src/HotChocolate/Caching/src/Caching/ImmutableCacheConstraints.cs
Outdated
Show resolved
Hide resolved
This looks good ... I will go over your comments ones more and verify things within the code and then its good to go. Sorry again for the long wait and thank you for your contribution. |
As discussed with @tobias-tengler this is what I would want from the caching.
I will add some comments with questions on how to best solve some problems