pquerna / cachecontrol

Golang HTTP Cache-Control Parser and Interpretation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bofia opened this issue · comments

commented

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