mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-28 13:11:05 -04:00
Cloudfront, our CDN, sometimes decides not to gzip assets. Because of this, we're going to gzip them ourselves prior to upload instead. This will involve: 1. adding gzipping to the make task that uploads them 2. turning compression off in Cloudfront There is already a pull request up for number 1: https://github.com/alphagov/notifications-admin/pull/3733 Because deploying all this will, at some point, create a state where Cloudfront is set to compress assets that are already compressed, we need to test that it doesn't re-compress them. This adds a frontend build task that generates a test asset which is: - a copy of app/static/stylesheets/main.css - renamed to include a MD5 SHA of its contents - already gzipped Once deployed, the test will be to: 1. download the asset from the live environment 2. unzip it 3. diff it against app/static/stylesheets/main.css
1.8 KiB
1.8 KiB