-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add cache headers for ReDoc and SwaggerUI #3341
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
Conversation
Embed the versions of redoc and swagger-ui-dist into their respective assemblies as `[AssemblyMetdata]` attributes. Contributes to #3336.
Remove redundant `GetTypeInfo()` calls.
Add cache readers to ReDoc static files.
Add cache readers to SwaggerUI static files.
Use a SHA of the content for the user-configurable assets instead of the ReDoc/SwaggerUI version.
- Allow private cache but not public cache. - Explicitly set `no-cache, no-store` if no cache value.
Bump version to 8.1.0.
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3341 +/- ##
==========================================
- Coverage 84.56% 83.28% -1.29%
==========================================
Files 84 84
Lines 3227 3285 +58
Branches 563 567 +4
==========================================
+ Hits 2729 2736 +7
- Misses 498 549 +51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
[AssemblyMetdata]
attributes.GetTypeInfo()
calls.Resolves #3336.