Closed
Description
I think health check response should never be cached:
$ curl -v http://localhost:8000/healthz
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /healthz HTTP/1.1
> Host: localhost:8000
> User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
> Accept: */*
> Referer:
>
< HTTP/1.1 200 OK
< date: Wed, 24 Mar 2021 21:48:07 GMT
< server: uvicorn
< content-length: 16
< content-type: application/json
< cache-control: public, max-age=3600
< server-timing: total;dur=4.22
<
* Connection #0 to host localhost left intact
{"ping":"pong!"}