Cache 302s and 308s with the right response headers.

Closes https://github.com/square/okhttp/issues/1158
Merge pull request #1254 from square/jwilson_1229_opt_into_caching

Cache 302s and 308s with the right response headers.