gulp-gcloud-publish
gulp-gcloud-publish copied to clipboard
metadata options
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
Hey sorry for the late reply.
Can you post the relevant part of your gulp config?
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'
}
}));