mape / connect-assetmanager

Middleware for Connect (node.js) for handling your static assets.
MIT License
310 stars 48 forks source link

Match hash/timeStamp in route #40

Open jproulx opened 12 years ago

jproulx commented 12 years ago

This change allows you to match the current hash or timestamp in the URL route. Kind of an edge case for CDN origin servers, but putting the hash in the URL path guarantees that the current asset is served correctly during staggered releases across multiple load-balanced hosts, rather than relying on cache-invalidation with GET parameters.