Oh wow, now I see why Guillaume suggested that gzip'ing content via reverse proxy is much easier.
Adding something like the following to <Location> proxy block in Apache:
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/plain text/xml image/x-icon
SetOutputFilter DEFLATE
results in sizable reduction in page load times as css, js, and html are all gzip'd on the way out to client -- no need to do a thing in Play ;-)
I suppose it might be worth it to gzip static js, css, and html Play files at build time (assuming the supplied informal plugin above does just this), might offload some CPU time from Apache gzip'ing the kitchen sink...but then again, Apache is not serving a single file from its own file system (Play is doing all the heavy lifting on master/slave servers on the LAN), so why not put it to work beyond load balancing and providing SSL ;-)
Have not tried it yet, but James Ward posted an excellent article on getting Play to work with Cloud Front:
http://www.jamesward.com/2012/08/08/edge-caching-with-play2-heroku-cloudfrontI'll add that in later, for now, with Play supplied expires and ETags headers, and Apache gzip'ing outbound content, we are already doing quite nicely...
On Wednesday, September 5, 2012 1:46:37 AM UTC+2, Eric Jain wrote: