ladjs / express-cdn

:cloud: Node module for delivering optimized, minified, mangled, gzipped assets with Express and Amazon's CDN (S3/CloudFront)
MIT License
660 stars 104 forks source link

404 response on amazon leads to failure #40

Open chrisrun opened 11 years ago

chrisrun commented 11 years ago

In my setup with aws region eu-west-1, line 147 in main.js (if (err) throwError(err);) propagates a 404 response as an error if the assets dont exist in my bucket.

chrisrun commented 11 years ago

This happens actually when it tries to read the assets from the local webserver and only if the webserver is not completely started up yet.

thadk commented 11 years ago

I am feeling this issue as well. Should the upload be synchronous? It seems that when the local web server gets accessed during the knox upload, my site largely fails and needs to be rebuilt and reuploaded.