-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add optional selective cache refresh option #777
Add optional selective cache refresh option #777
Conversation
@@ -61,6 +71,10 @@ data: | |||
|
|||
# Default location for cached requests | |||
location / { | |||
{{- if .Values.proxy.proxyBypass.enabled -}} | |||
add_header Cache $upstream_cache_status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Cache
header is, of course, optional but I like the transparency it provides.
Thanks @sboardwell ! Are you at ease with helm unitest to add some to cover the code in this change? |
I can add some. Was a little busy today but wanted to get something in for you to look at. |
(btw: you have to bump the chart version in order to have the checks validating your PR) |
@dduportal - should be good to go now |
Co-authored-by: Damien Duportal <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍🏼
This PR adds the ability to selectively refresh cached elements.
Inspiration taken from https://bluegrid.io/edu/how-to-purge-the-nginx-cache