Added caching middleware. Fixed content-length of compression middleware.