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 property to force cache-control: no-store on: quarkus.smallrye-health #39868

Closed
jycr opened this issue Apr 3, 2024 · 4 comments · Fixed by #39872
Closed

Add property to force cache-control: no-store on: quarkus.smallrye-health #39868

jycr opened this issue Apr 3, 2024 · 4 comments · Fixed by #39872

Comments

@jycr
Copy link
Contributor

jycr commented Apr 3, 2024

Description

Between our browser and target server, we use corporate proxy.
When our UI check URL health of our application modules, when one module is down (TCP connexion down : Couldn't connect to server), our proxy continue to serve a cached response.

If the response to the healthcheck URL included a cache-control: no-store header, it would not be stored in our corporate proxy's cache.

Implementation ideas

Add a property (eg: quarkus.smallrye-health.reponse-header."cache-control"=no-store) to customize HTTP response header

@quarkus-bot
Copy link

quarkus-bot bot commented Apr 3, 2024

/cc @Ladicek (smallrye), @gwenneg (cache), @jmartisk (health,smallrye), @phillip-kruger (smallrye), @radcortez (smallrye), @xstefank (health)

@gsmet
Copy link
Member

gsmet commented Apr 3, 2024

Yeah I think that makes perfect sense and we should avoid all caching for health checks.

@geoand
Copy link
Contributor

geoand commented Apr 4, 2024

This definitely makes sense but I would argue that we should do this OOTB.

@geoand
Copy link
Contributor

geoand commented Apr 4, 2024

#39872 is what I have in mind

gsmet added a commit that referenced this issue Apr 4, 2024
Use cache-control header to make sure health checks aren't cached
@quarkus-bot quarkus-bot bot added this to the 3.10 - main milestone Apr 4, 2024
@gsmet gsmet modified the milestones: 3.10 - main, 3.9.3 Apr 9, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue Apr 9, 2024
gsmet pushed a commit to gsmet/quarkus that referenced this issue Apr 9, 2024
ketola pushed a commit to ketola/quarkus that referenced this issue May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants