Skip to content
New issue

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

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

Already on GitHub? # to your account

update to fresh@^2.0.0 #5916

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

jonchurch
Copy link
Member

update to fresh@^2.0.0

fixes handling of If-Modified-Since in combination with If-None-Match
@jonchurch jonchurch requested a review from wesleytodd September 7, 2024 00:02
@jonchurch jonchurch changed the title Throw on invalid status codes (#4212) update to fresh@^2.0.0 Sep 7, 2024
@@ -46,5 +46,25 @@ describe('req', function(){
.get('/')
.expect(200, 'false', done);
})

it('should ignore "If-Modified-Since" when "If-None-Match" is present', function(done) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Add another case where etag doesnt match, but if-modified-since would report as fresh. Should report as not fresh in this case

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

Successfully merging this pull request may close these issues.

2 participants