google / google/osv.dev

Support for caching

Open
#274 6 comments 2 reactions 0 assignees View on GitHub
api backlog enhancement infra
Dominant language
Go
Stars
2.9k
Forks
369
Avg merge
1d 17h
Merged PRs (30d)
149

Description

Other vulnerability APIs such as PyPI's JSON API provide support for [caching](https://warehouse.pypa.io/api-reference/index.html#caching), allowing the client to avoid making multiple identical requests via [ETag headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag).

The OSV API's use of `POST` requests makes this somewhat challenging, as `POST` responses are not usually cached.

How should OSV support caching, and how should OSV clients cache responses?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.