I have configured CloudFront in front of my web application that uses JSP pages, but it will not cache my page because the Content-Length header is not set.
Is there a way that I can get JSP to include the Content-Length, or do I need to do something ugly like have a filter than streams the content to determine it's length, then streams it to the response stream afterwards (setting the ContentLength header first).