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

feat: Do not cache health checks per default #2335

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

BrunnerLivio
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #2328

What is the new behavior?

When using the @HealthCheck decorator
it will now per default set the following header:
Cache-Control: no-cache, no-store, must-revalidate

To disable this behavior set @HealthCheck({ noCache: false })

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@BrunnerLivio BrunnerLivio mentioned this pull request Sep 14, 2023
4 tasks
When using the `@HealthCheck` decorator
it will now per default set the following header:
`Cache-Control: no-cache, no-store, must-revalidate`

To disable this behavior set `@HealthCheck({ noCache: false })`

resolves #2328
@BrunnerLivio
Copy link
Member Author

If you have time, I'd appreciate your review @Tony133 :)

Copy link
Contributor

@Tony133 Tony133 left a comment

Choose a reason for hiding this comment

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

LGTM 😉👍

@BrunnerLivio BrunnerLivio merged commit c3a084d into 10.1.x Sep 14, 2023
22 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/cache-control branch September 14, 2023 17:05
BrunnerLivio added a commit that referenced this pull request Sep 14, 2023
When using the `@HealthCheck` decorator
it will now per default set the following header:
`Cache-Control: no-cache, no-store, must-revalidate`

To disable this behavior set `@HealthCheck({ noCache: false })`

resolves #2328
BrunnerLivio added a commit that referenced this pull request Sep 14, 2023
When using the `@HealthCheck` decorator
it will now per default set the following header:
`Cache-Control: no-cache, no-store, must-revalidate`

To disable this behavior set `@HealthCheck({ noCache: false })`

resolves #2328
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