Google's pagespeed is a component that can be deployed on an nginix or an apache server that compresses and caches web static resources such as css / js files and modifies header instructions on the fly to enable browser caching.
https://developers.google.com/speed/pagespeed/