Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge using Surrogate-Key headers #220

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

AA-Turner
Copy link
Member

This follows on from python/psf-salt#287, where we have added Surrogate-Key headers to all language-version pairs. These are consumed internally by Fastly and can be used to purge an entire set of pages at once, rather than doing so per-page.

I've tested using curl to send the requests manually and it seems to work -- we get a cache hit, purge the surrogate key, and then get a cache miss.

This should also marginally improve build times, but I think the simplification stands alone as a value proposition.

A

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@AA-Turner AA-Turner merged commit bbf1112 into python:main Oct 21, 2024
5 checks passed
@AA-Turner AA-Turner deleted the surrogate-key branch October 21, 2024 12:27
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.

2 participants