Closed campbecf closed 6 years ago
ember-cli-sri seems to be providing hashes for pre-gzip values which don't seem to work.
Failed to find a valid digest in the 'integrity' attribute for resource
etc..
If I cat file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A I get the hash I'd expect for the gzipped version.
cat file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A
If I gunzip -c file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A I get the hash that ember-cli-sri expects to work.
gunzip -c file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A
Leaving this here for people searching on this error, but my problem appeared to be Cloudfront gzipping files. Once I turned that off and started gzipping everything myself this seems to work.
ember-cli-sri seems to be providing hashes for pre-gzip values which don't seem to work.
Failed to find a valid digest in the 'integrity' attribute for resource
etc..
If I
cat file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A
I get the hash I'd expect for the gzipped version.If I
gunzip -c file.js | openssl dgst -sha256 -binary | openssl enc -base64 -A
I get the hash that ember-cli-sri expects to work.