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

Clean redirected responses #476

Merged
merged 2 commits into from
Apr 29, 2017
Merged

Clean redirected responses #476

merged 2 commits into from
Apr 29, 2017

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @gauntface

Fixes #173

This is analogous to the change in GoogleChromeLabs/sw-precache#241


return bodyPromise.then((body) => {
// new Response() is happy when passed either a stream or a Blob.
return new Response(body, {
Copy link
Member

Choose a reason for hiding this comment

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

Reading through GoogleChromeLabs/sw-precache@1899583#diff-c1129c8b045390789fa8ff62f2c6b4a9R492 I was reminded that we had a conversation about globals (e.g global.Response) @gauntface. We might want to revisit that again sometime.

@jeffposnick jeffposnick merged commit 42b4f2d into master Apr 29, 2017
@jeffposnick jeffposnick deleted the clean-redirected-responses branch April 29, 2017 11:29
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

2 participants