Skip to content
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

fix(core-api): add request.method in cache key #4157

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

sebastijankuzner
Copy link
Contributor

@sebastijankuzner sebastijankuzner commented Nov 10, 2020

Summary

Include request.method name into cache key generator. This fixes issue on some clients and create separate cache for OPTIONS and GET method on the same route path.

Checklist

  • Ready to be merged

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #4157 (3949b22) into develop (feb1d6b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #4157   +/-   ##
========================================
  Coverage    96.19%   96.19%           
========================================
  Files          722      722           
  Lines        17538    17538           
  Branches      2147     2147           
========================================
  Hits         16871    16871           
  Misses         502      502           
  Partials       165      165           
Flag Coverage Δ
functional 5.99% <ø> (ø)
integration 9.88% <ø> (ø)
unit 94.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/core-api/src/plugins/cache.ts 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update feb1d6b...3949b22. Read the comment docs.

@air1one air1one merged commit 4e8f5c1 into develop Nov 10, 2020
@air1one air1one deleted the fix/core-api/empty-response branch November 10, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants