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

Add Purge Front Door Cache action #87

Merged
merged 4 commits into from
Oct 15, 2024
Merged

Add Purge Front Door Cache action #87

merged 4 commits into from
Oct 15, 2024

Conversation

zwolf
Copy link
Member

@zwolf zwolf commented Oct 8, 2024

Inputs are strings: the name of the Front Door (e.g. www-zooniverse-org) and the content path to purge (e.g. /, /about/, /about/*, etc).

This starts with support for a single string and requires multiple calls to purge multiple paths. However, it is possible to pass a string that can be processed into a matrix strategy (like "'/', '/*'" or "'/', '/about', '/get-involved'"). I'm thinking that right now we might just process '/*' for the initial use case for this (post-FEM deploys) so I'll revisit if required.

Also includes a test that purges the cache for https://frontend.preview.zooniverse.org/assets/star.jpg

Copy link

@goplayoutside3 goplayoutside3 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!

@zwolf zwolf merged commit 883367f into main Oct 15, 2024
6 checks passed
@zwolf zwolf deleted the purge-cache-action branch October 15, 2024 17:44
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