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

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 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

@wesleytodd wesleytodd merged commit 4d713d2 into expressjs:5.0 Sep 9, 2024
7 of 20 checks passed
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.

2 participants