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

Set cache expiration for frontend route #809

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Conversation

johnthagen
Copy link
Collaborator

@johnthagen johnthagen commented Nov 13, 2020

Set cache expiration to 12 hours on the frontend routes so that if the server's frontend implementation is updated, clients will automatically pull in a fresh version at the beginning of the next day.

This fixes the issue where users have to manually refresh to update their cached frontend implementation.


This change is Reviewable

@johnthagen johnthagen added the enhancement New feature or request label Nov 13, 2020
@johnthagen johnthagen requested a review from jmgrady November 13, 2020 12:59
@johnthagen johnthagen self-assigned this Nov 13, 2020
@codecov-io
Copy link

codecov-io commented Nov 13, 2020

Codecov Report

Merging #809 (7b83bf7) into master (04279da) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #809   +/-   ##
=======================================
  Coverage   51.17%   51.17%           
=======================================
  Files         237      237           
  Lines        6449     6449           
  Branches      416      416           
=======================================
  Hits         3300     3300           
  Misses       2841     2841           
  Partials      308      308           
Flag Coverage Δ
backend 55.23% <ø> (ø)
frontend 47.26% <ø> (ø)

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


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 04279da...7b83bf7. Read the comment docs.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jmgrady)

Copy link
Collaborator

@jmgrady jmgrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jmgrady)

@johnthagen johnthagen merged commit 0e34593 into master Nov 13, 2020
@johnthagen johnthagen deleted the nginx-cache-expiration branch November 13, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants