Skip to content

Additional files are uploaded along with their compressed versions when it is not required #72

Description

@vvasin

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions