gojek/wrest

Caching: Update existing Cache headers when a 304 is received.

Closed this issue · 2 comments

Currently a 304 from server does not update the corresponding headers in the Cache entry. So after this resource has expired, every further request will need a server side validation.

But RFC 2616 says:
If a cache uses a received 304 response to update a cache entry, the cache MUST update the entry to reflect any new field values given in the response.

Fixed in aa345d6