I use nodejs as a server technology on the SPA web application with a custom router engine and require.js as a dependency manager.
I'm looking for a way to organize web resources serving with following goals achieved:
Is there a way to achieve all 4 goals with requirejs or headjs, or it does require additional middle tier?