Commit Graph

4 Commits

Author SHA1 Message Date
Josenivaldo Benito Jr
7d675f69c7 Pass headers to s3-sync to be able to set metadata in objects
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>
2016-06-27 15:43:40 -03:00
Jack Guy
bd5e7ec966 Fixed obnoxious logging 2016-01-09 15:02:47 -06:00
Jack Guy
c0070e9578 Changed s3-sync dependency to the s3 module, better maintained. API hasn't changed 2016-01-09 14:44:08 -06:00
Nick Terwoord
58d0a1c341 Update to Hexo 3.0
Update to make code more similar to existing hexojs plugins.

In theory should work with previous versions of hexojs, but forcing version to 3.0.
2015-05-06 20:03:36 -04:00