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

add if-range logic #3111

Merged
merged 1 commit into from Nov 11, 2019
Merged

add if-range logic #3111

merged 1 commit into from Nov 11, 2019

Conversation

gquintard
Copy link
Member

No description provided.

bin/varnishd/cache/cache_range.c Outdated Show resolved Hide resolved
bin/varnishd/cache/cache_range.c Outdated Show resolved Hide resolved
bin/varnishd/cache/cache_range.c Show resolved Hide resolved
@Dridi Dridi self-requested a review November 5, 2019 11:15
Copy link
Member

@Dridi Dridi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anything, the comments referencing the RFC should use the same format as h2 comments so that we can have coverage here: https://varnish-cache.org/rfc/

nigoroll added a commit to nigoroll/varnish-cache that referenced this pull request Nov 6, 2019
Noticed discussing varnishcache#3111: Unsetting resp.http.Last-Modified should have
the same effect as the header not being present in the cache object.
@nigoroll
Copy link
Member

nigoroll commented Nov 6, 2019

@gquintard I think @Dridi wants you to put the rfc comment in the format used here:

if (h2->rxf_len != 8) // rfc7540,l,2364,2366

Copy link
Member

@nigoroll nigoroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the OA_LASTMODIFIED question is independent of the rest of this PR and because Dridi will insist on the RFC ref comments, there is nothing which should hold back my OK

@gquintard
Copy link
Member Author

@Dridi, RFC coverage added, let me know if you want more
@nigoroll, I'll want for you for #3118

Note that adding RFC coverage made me realize the code was wrong:

Note that this comparison by exact match,
including when the validator is an HTTP-date, differs from the
"earlier than or equal to" comparison used when evaluating an
If-Unmodified-Since conditional.

So I amended the code accordingly

@nigoroll
Copy link
Member

nigoroll commented Nov 9, 2019

@nigoroll, I'll want for you for #3118

I do not understand want. Do you mean wait?

bin/varnishd/cache/cache_range.c Outdated Show resolved Hide resolved
@gquintard
Copy link
Member Author

@nigoroll, I'll want for you for #3118

I do not understand want. Do you mean wait?

That's what I meant, keyboards are hard...

Copy link
Member

@nigoroll nigoroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@nigoroll nigoroll requested a review from Dridi November 11, 2019 13:53
@bsdphk bsdphk self-requested a review November 11, 2019 17:05
@gquintard gquintard merged commit 649ad2b into varnishcache:master Nov 11, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants