When using a multi-CDN configuration, if the compression is enabled only in the first one, additional files are uploaded to the second CDN along with their compressed versions anyway.
A sample configuration:
cdn: [
{
bucket: '<bucket-1>',
prefix: 'build',
region: 'eu-central-1',
compress: true,
additionalPattern: 'i18n/**/*',
},
{
bucket: '<bucket-2>',
prefix: 'build',
region: 'eu-central-1',
compress: false,
additionalPattern: 'i18n/**/*',
},
],
This leads to the upload, for example, the <bucket-1>/build/i18n/en...js.gz and <bucket-2>/build/i18n/en...js.gz files. However, the <bucket-2>/build/js/main...js.gz file would not be uploaded. If the additional pattern is not specified in the first configuration, the feature works as expected, and the <bucket-2>/build/i18n/en...js.gz file will not be uploaded in this case.