Minify middleware #449

merged 9 commits into from Feb 27, 2012

2 participants


This moves caching/gzipping into its own middleware. This simplifies Minify.js a lot and gets things ready for moving the packaging logic out and into its own middleware in this branch.

This is mostly just moving code. It would be nice if this could be replaced by separate (and existent) gzipping and caching middlewares.

Note: this caching layer also respects the expires header, so in development, it will be important to add "maxAge": 1 in settings.


Can you add the new setting into settings.json.template?

Also, I feel like this minify thing gets more and more owned by you. Can you add some more comments please?


@Pita, adjusted the settings template. Minify almost to the point of being stable – then I will get around to documenting it. After this branch it will be much simpler and easy to document.

Note: in a few branches from now versioning should probably be added to the asset URLs so that the 6 hour maxAge doesn’t cause issues when server-side code changes (and the maxAge can be raised to a year or longer).

@Pita Pita merged commit b661ef5 into ether:master Feb 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment