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

Cloudfront invalidation when source asset it updated #20

Open
timkelty opened this issue Jul 31, 2019 · 3 comments
Open

Cloudfront invalidation when source asset it updated #20

timkelty opened this issue Jul 31, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@timkelty
Copy link

Currently if an s3 asset is updated/replaced (i.e. "Replace File" in your CMS), the resized versions will be cached in Cloudfront and therefore stale.

Could we trigger a CF invalidation when an s3 object is updated?

@Mosnar Mosnar added the enhancement New feature or request label Aug 6, 2019
@Mosnar
Copy link
Collaborator

Mosnar commented Aug 6, 2019

This seems like it should be pretty-doable; however, I'd like to make it optional since CDN invalidations can add quite a bit of cost if not used efficiently.

An additional option is to support an additional parameter for version or something to that affect.

@timkelty
Copy link
Author

timkelty commented Aug 6, 2019

I'd like to make it optional since CDN invalidations can add quite a bit of cost if not used efficiently

Yep.

Seems to be a bit of a tossup if this should be handled from your app or be integrated as part of the lambda.

@gregBerthelot
Copy link

An additional option is to support an additional parameter for version or something to that affect.

sounds a good option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants