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

feat: add X-Cached-Response header behind option #56

Merged
merged 2 commits into from
Jul 4, 2020

Conversation

shaunwarman
Copy link
Contributor

Add setCachedHeader option that, when true, sets a X-Cached-Response header set to HIT when response is served from cache.

@codecov
Copy link

codecov bot commented Jun 25, 2020

Codecov Report

Merging #56 into master will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   95.83%   95.89%   +0.05%     
==========================================
  Files           1        1              
  Lines          72       73       +1     
==========================================
+ Hits           69       70       +1     
  Misses          3        3              
Impacted Files Coverage Δ
index.js 95.89% <100.00%> (+0.05%) ⬆️

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 08d93bd...bb6063b. Read the comment docs.

@niftylettuce niftylettuce merged commit 12df6e3 into koajs:master Jul 4, 2020
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