dropwizard / dropwizard-health

Provides a health check implementation that performs ongoing monitoring of an application's dependencies and includes an endpoint that can be called by a load balancer to determine if the application is healthy and thus able to receive traffic.
Apache License 2.0
18 stars 6 forks source link

Add support for configuring `Cache-Control` header for health check responses #23

Closed pstackle closed 5 years ago

pstackle commented 5 years ago

In some scenarios, it is important to be able to have the health check responses include the Cache-Control header with directives indicating that the response should not be cached. For example, if if an app's health check is being consumed by a GSLB for failover purposes, the app may publicly be behind a cache, but the app's health check response should NOT be cached.