Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bofia opened this issue Jun 7, 2021 · 0 comments
Open

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

bofia opened this issue Jun 7, 2021 · 0 comments

Comments

@bofia
Copy link

bofia commented Jun 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant