I have a question/request regarding badges/shields on Anaconda. Consider the “Number of Downloads” badge for conda-forge::python
:
The response is a redirect to shields.io, which then in turn responds with the SVG content along with a HTTP Cache Control header:
Cache-Control: max-age=432000
A duration of 432000 seconds corresponds to 5 days. I’d like my shield to be more up-to-date. I would prefer a maximum age of, say 10 minutes, i.e. 600 seconds.
After reading about similar issues, e.g.
I tried to add the query parameter maxAge=600
to the URL. However, this parameter is dropped when generating the redirect to Shields. I’d like to ask for the redirect to support passing maxAge
. Otherwise, please consider passing maxAge
with a smaller value to Shields. Thanks!
Here are two recordings of HTTP traffic in HAR format (but using the file extension *.json
to circumvent blocking):
- anaconda-shield-nomaxage.json (11.3 KB)
- anaconda-shield-maxage.json (11.5 KB)