Closed luludan closed 4 years ago
@luludan, sorry for the late reply. I think you need to indent the CacheControl
lines by an additional 2 spaces.
If this doesn't work can you please advise what version you're using? If you're no longer using the plugin or have resolved the issue please close the issue.
Thanks.
Adding two additional spaces works for me!
s3Sync:
- bucketName: ${self:custom.s3Bucket}
localDir: .dir/sub_dir
bucketPrefix: _dir/sub_dir
params:
- '**/*.js':
CacheControl: 'public, max-age=31536000, immutable'
- '**/*.css':
CacheControl: 'public, max-age=31536000, immutable'
- '**/*.woff':
CacheControl: 'public, max-age=31536000, immutable'
@k1LoW Can confirm that indenting CacheControl as shown above works correctly (and this is how it's documented in the readme). I think you can close this.
@coyoteecd Thank you !!
I'm trying to specify cache-control headers with this syntax:
But am getting this error when trying to run
sls deploy
Not sure quite what I'm doing wrong here