ForbesLindesay / browserify-middleware

express middleware for browserify, done right
http://browserify.org
MIT License
381 stars 66 forks source link

Preheat cache? #32

Closed bjoerge closed 10 years ago

bjoerge commented 10 years ago

Are there there any ways of having browserify middleware build and cache a bundle at deploy time?

We're having six different servers behind a load balancer. The first request that hits each servers bundle.js takes ~ 1 - 3 secs to build. Especially in times with frequent deploys this makes the site load quite slow until the bundle is built and cached on each server.

A possible workaround is to actually issue a http request to bundle.js deploy time, but that feels a little too hackish. Any suggestions?

ForbesLindesay commented 10 years ago

Duplicate of #31

I will accept pull requests.