cachecontrol icon indicating copy to clipboard operation
cachecontrol copied to clipboard

Should not cache when only `Date` response header is passed in.

Open bofia opened this issue 4 years ago • 0 comments

When passing in a response with just the Date header set, the return value is: reasons: nil expires: time.Time{} (a zero value) err: nil

I would expect the reasons to be something like ReasonResponseUncachableByDefault since passing just a Date header doesn't meet any caching spec

bofia avatar Jun 07 '21 20:06 bofia