Merge pull request #5 from backbone87/master

fix infinite loop when no authentication should be performed even after 401
fix caching of response headers
parse the header of cached responses when restoring