Skip to content

purge: Fix CDN purge script (enable purgeAllDynamic option) #48

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

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

Krinkle
Copy link
Member

@Krinkle Krinkle commented Dec 8, 2018

While not yet documented or announced, it seems the Purge API
from StackPath/Highwinds/StrikeTracker no longer purges variants
by default as of October this year.

The old behaviour can be regained through the undocumented
purgeAllDynamic boolean option which appears to be false
by default.

I'm not sure what variants we have that cause this behaviour, but
it might be due to something like Vary:Accepted-Encoding (gzip etc.).

Fixes #45.

While not yet documented or announced, it seems the Purge API
from StackPath/Highwinds/StrikeTracker no longer purges variants
by default as of last month.

The old behaviour can be regained through the undocumented
`purgeAllDynamic` boolean option which appears to be false
by default.

I'm not sure what variants we have that cause this behaviour, but
it might be due to something like Vary:Accepted-Encoding (gzip etc.).

Fixes jquery#45.
@Krinkle
Copy link
Member Author

Krinkle commented Dec 8, 2018

I've confirmed locally that REQUEST_URI="/mobile/" php purge.php results in https://code.jquery.com/mobile/ being purged and now includes jQuery Mobile 1.5.0-rc1.

Previously, the CDN url still showing jQuery Mobile 1.5.0-alpha.1.

@arschmitz
Copy link
Member

@Krinkle Thank you so much there have been tons of people complaining about it not existing

Copy link
Member

@trentmwillis trentmwillis left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@dmethvin
Copy link
Member

@Krinkle I added you to the maintainers team so you can land this whenever you feel good about it. Thanks!

@Krinkle
Copy link
Member Author

Krinkle commented Dec 20, 2018

Thanks @dmethvin. I'll try it out now and will revert if not working as expected.

@Krinkle Krinkle merged commit 95a6f35 into jquery:master Dec 20, 2018
@Krinkle Krinkle deleted the purge branch December 20, 2018 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants