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

Rewrite thumbnail proxy using got #6

Merged
merged 3 commits into from
Oct 10, 2018
Merged

Rewrite thumbnail proxy using got #6

merged 3 commits into from
Oct 10, 2018

Conversation

tusbar
Copy link
Contributor

@tusbar tusbar commented Oct 9, 2018

Add 30 days of Cache-Control so that the browser caches the thumbnail. It should lower the request count.

@tusbar tusbar added this to the 2.0.0 milestone Oct 9, 2018
@tusbar tusbar self-assigned this Oct 9, 2018
@codecov-io
Copy link

codecov-io commented Oct 9, 2018

Codecov Report

Merging #6 into master will increase coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #6      +/-   ##
=========================================
+ Coverage     4.4%   4.41%   +0.01%     
=========================================
  Files          98      98              
  Lines        2159    2152       -7     
=========================================
  Hits           95      95              
+ Misses       2064    2057       -7
Impacted Files Coverage Δ
lib/api/controllers/records.js 0% <0%> (ø) ⬆️
lib/api/middlewares/thumbnail-proxy.js 0% <0%> (ø)

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 a5d559e...a13b23a. Read the comment docs.

@tusbar tusbar requested a review from jdesboeufs October 9, 2018 22:46
Add Cache-Control headers (30 days) to keep the thumbnails in the
browser cache.
@tusbar tusbar merged commit 9c173d4 into master Oct 10, 2018
@tusbar tusbar deleted the tusbar/thumbnail-proxy branch October 10, 2018 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants