cloudflare / Stout

A reliable static website deploy tool
MIT License
752 stars 29 forks source link

Local cache #6

Open podviaznikov opened 9 years ago

podviaznikov commented 9 years ago

Is it possible to implement local caching? E.x. if exactly same file was already uploaded to s3 - skip upload.

Am I right that this isn't implemented currently?

zackbloom commented 9 years ago

You are correct. We put off implementing that because consistency was more important than speed, and almost all of our deploys happen from a continuous integration server, so speed was not hugely important.

It absolutely would be possible to implement by checking the md5 of files already in S3 (using a HEAD request), and only uploading if the new file is different (or has different caching headers, content-type, etc.)

On Aug 9, 2015, at 2:37 AM, Anton Podviaznikov notifications@github.com wrote:

Is it possible to implement local caching? E.x. if exactly same file was already uploaded to s3 - skip upload.

Am I right that it isn't implemented currently?

— Reply to this email directly or view it on GitHub.