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

ShallowEtagHeaderFilter should make use of specified content length [SPR-8271] #12919

Closed
spring-projects-issues opened this issue Apr 23, 2011 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Apr 23, 2011

Oliver Siegmar opened SPR-8271 and commented

The current ShallowEtagHeaderFilter implementation does not make any use of the content-length set by the content generating code. The attached patch re-initializes the ByteArrayOutputStream with the specified content-length. This improves performance on very busy sites with rather big files.


Affects: 3.0.5

Attachments:

Issue Links:

Referenced from: commits ae012ae

2 votes, 4 watchers

@spring-projects-issues
Copy link
Collaborator Author

Oliver Siegmar commented

Same patch with fully qualified directory based on trunk.

@spring-projects-issues
Copy link
Collaborator Author

Eugen Paraschiv commented

This would also make sense from the POV of the consumer, which should see the Content-Lenght: 0, which does not happen now:

HTTP/1.1 304 Not Modified
Server: Apache-Coyote/1.1
ETag: "03cb37ca667706c68c0aad4cb04c3a211"
Date: Fri, 11 Jan 2013 13:56:20 GMT

@spring-projects-issues
Copy link
Collaborator Author

Stevo Slavić commented

"Fix version" is not filled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants