Fix timer.http method
Add specs for cache-middleware