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

Add cache control to metrics and health endpoints (2.x) #4257

Merged
merged 5 commits into from
May 26, 2022
Merged

Add cache control to metrics and health endpoints (2.x) #4257

merged 5 commits into from
May 26, 2022

Conversation

tjquinno
Copy link
Member

Resolves #4241 for 2.x

Health: Always add a cache-suppressing header to responses.

Metrics: Add a cache-suppressing header to responses containing or representing data (GET and HEAD). OPTIONS requests contains only metadata so they are (conceivably) more able to be reasonably cached so exclude the cache-suppressing header from those responses.

@tjquinno tjquinno requested a review from spericas May 23, 2022 21:11
@tjquinno tjquinno self-assigned this May 23, 2022
@tjquinno tjquinno merged commit 48e2ac3 into helidon-io:helidon-2.x May 26, 2022
@tjquinno tjquinno deleted the nocache-2.x branch May 26, 2022 21:02
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