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 command to invalidate asset cache #190

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Conversation

joedixon
Copy link
Contributor

This PR adds a command to invalidate the CloudFront asset cache of a given environment.

On occasion, we see that assets such as fonts return CORs errors directly after a deployment. Sometimes, this can be resolved with a redeployment, but it's not guranteed and it's a slow process.

We have had success manually invalidating the CloudFront cache, but it's a cumbersome process.

Instead, this command can be used to create an invalidation of the files in CloudFront.

Using this command, only the directory related to the current environment is invalidated.

@taylorotwell taylorotwell merged commit 9bbf55b into master Jul 15, 2022
@taylorotwell taylorotwell deleted the fix/invalidate-cache branch July 15, 2022 16:17
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