gulp-gcloud-publish icon indicating copy to clipboard operation
gulp-gcloud-publish copied to clipboard

metadata options

Open Edmondton opened this issue 8 years ago • 2 comments

is the metadata options being honored. I tried to specify the metadata option and its not working. I even used your example for setting cachecontrol. Please advise

Edmondton avatar Jan 12 '17 18:01 Edmondton

Hey sorry for the late reply.

Can you post the relevant part of your gulp config?

albertorestifo avatar Feb 01 '17 09:02 albertorestifo

yeah no worries. thanks. let me know if i am doing something wrong there.


gulp.src(`${CONFIGS.BUILD}/js/*.js`)
        .pipe(googleCloud({
            bucket: 'something',
            keyFilename: argv.keyFilename,
            projectId: 'something',
            base: `/${version}/js`,
            public: true,
            metadata: {
                cacheControl: 'max-age=315360000, no-transform, public'
            }
        }));

Edmondton avatar Feb 01 '17 16:02 Edmondton