Fix some caching bugs
Add a setContentLength method to the exchange