Skip to content

Cache is bypassed when requests use authorization #124

@carlosms

Description

@carlosms

The http cache we have in use is bypassed because the request header Authorization does not match the cached response header (empty for Authorization). It is working fine when we make unauthorized requests (leaving the github env vars unset).

More exactly, this call to varyMatches returns false because of the Authorization header: https://github.com/gregjones/httpcache/blob/9cad4c3443a7200dd6400aef47183728de563a38/httpcache.go#L160

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions