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

Truncating response body #55

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

JimTools
Copy link

@JimTools JimTools commented Mar 7, 2024

truncating the body to reduce data transmission on cache hits.

closes #54

Adding tests ETag and Last-Modified to ensure the
response body shouldn't send data when their is a
cache hit.
Replacing the response body on cache hits to reduce data transmission
$this->type = $type;
$this->maxAge = $maxAge;
$this->mustRevalidate = $mustRevalidate;
$this->streamFactory = $streamFactory;
Copy link
Author

Choose a reason for hiding this comment

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

Maybe for now it's better to add slim/psr7 and call StreamFactory this would make it easier for anyone already using this package?

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.

Body is still sent on 304
1 participant