Travis returns failing/passing badge alternatively for the same build with same etag
resulted in passing build badge
➜ ~ curl -I https://api.travis-ci.org/messagebird/go-rest-api.svg\?branch\=master
HTTP/2 200
date: Wed, 17 Jun 2020 09:53:50 GMT
content-type: image/svg+xml
content-length: 724
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
x-endpoint: Travis::Api::App::Endpoint::RepoStatus
x-pattern: /:owner_name/:name
x-oauth-scopes: public
x-accepted-oauth-scopes: public
vary: Accept,Accept-Encoding
cache-control: no-cache
etag: "73ea80cfa4484ebd07d62b9eef5836c1"
pragma: no-cache
expires: Wed, 17 Jun 2020 09:53:50 GMT
content-disposition: inline; filename="passing.svg"
last-modified: Wed, 17 Jun 2020 09:10:38 GMT
x-content-digest: 6a7e16d9fbe5b315f689672a9e5b02a94834961a
age: 0
x-rack-cache: miss, store
x-request-id: 027855f30542945a85f66112b3cbcf3f
access-control-allow-origin: *
access-control-allow-credentials: true
access-control-expose-headers: Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID
Resulted in failing build image
➜ ~ curl -I https://api.travis-ci.org/messagebird/go-rest-api.svg\?branch\=master
HTTP/2 200
date: Wed, 17 Jun 2020 09:53:52 GMT
content-type: image/svg+xml
content-length: 726
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
x-endpoint: Travis::Api::App::Endpoint::RepoStatus
x-pattern: /:owner_name/:name
x-oauth-scopes: public
x-accepted-oauth-scopes: public
vary: Accept,Accept-Encoding
cache-control: no-cache
etag: "73ea80cfa4484ebd07d62b9eef5836c1"
pragma: no-cache
expires: Wed, 17 Jun 2020 09:53:52 GMT
content-disposition: inline; filename="failing.svg"
last-modified: Wed, 17 Jun 2020 09:10:38 GMT
x-content-digest: 922c9cc746e8bc766b6acfed45d83e014df8a13e
age: 0
x-rack-cache: miss, store
x-request-id: b92a8691d5d06f99dc3c7cff5667b7ad
access-controlx-allow-origin: *
access-control-allow-credentials: true
access-control-expose-headers: Content-Type, Cache-Control, Expires, Etag, Last-Modified, X-Request-ID