s3-sync has the ability to receive headers as arguments and pass them to
AWS S3 as metadata headers. This modification proposes to set headers at
configuration so they are written in the objects when deploying.
Main motivation is to be able to pass CacheControl header and have
Cache-Control set for objects ovoiding "Leverage Browser Caching"
throwed by page speed analyzers.
Attention: Metadata are written equal to all objects (files) stored to
S3 and there is no way to tailor it by file type at this moment.
Signed-off-by: Josenivaldo Benito Jr <jrbenito@benito.qsl.br>
- Use peer dependencies to state relationship with hexo
- Re-install `level` required package (can be used to create local S3 cache for performance, see [s3-sync](https://github.com/hughsk/s3-sync))