lupinia / awi

Full Lupinia/Awi website, built with Django
https://www.lupinia.net/
2 stars 1 forks source link

Send CloudFront invalidation command when updating static content #121

Open lupinia opened 1 year ago

lupinia commented 1 year ago

This affects basically all static files on the site, but when updating these files, I want CloudFront to invalidate and re-cache them immediately. I'll have to make sure Amazon won't charge an absurd fee for that privilege, but assuming that's not a blocker, this is worth doing even if I have to fork the S3 storage library myself.

lupinia commented 1 year ago

I've confirmed that this affects all static and media files on the site, which could result in a prohibitively large amount of CloudFront cache invalidation commands during certain operations. So, the highest priority for this is the static precompiler for SASS, and document files for DeerBooks. Next priority after that would probably be the collectstatic command. And then Sunset images.