Skip to content

Conversation

@ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented May 8, 2025

This is primarily to support discriminating between HTML and JSON rendered /simple/ index cache times.

In support of pypa/bandersnatch#1898

This is primarily to support discriminating between HTML and JSON rendered /simple/ index cache times.

In support of pypa/bandersnatch#1898
@ewdurbin ewdurbin requested a review from a team as a code owner May 8, 2025 14:24
@cooperlees
Copy link
Contributor

I don't know if this is possible, but could we reduce the TTL for only bandersnatch clients so others get what they get today and only bandersnatch get's lower and maybe lower than 1 hour?

I get this could be a DOS/DDOS enabling feature, but isn't the xmlrpc endpoint today anyways?

  • I guess it's more separate/isolated tho

@ewdurbin
Copy link
Member Author

ewdurbin commented May 8, 2025

I don't know if this is possible, but could we reduce the TTL for only bandersnatch clients so others get what they get today and only bandersnatch get's lower and maybe lower than 1 hour?

Not necessary since this should only result in one request to the backend every 30 minutes or so. The response will be be cached in our CDN.

@ewdurbin ewdurbin merged commit c92eaf2 into main May 8, 2025
20 checks passed
@ewdurbin ewdurbin deleted the cache_override_ttl branch May 8, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants