Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Explicitly set redirect: follow on the precaching requests. #233

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

jeffposnick
Copy link
Contributor

R: @addyosmani @gauntface

The default mode for redirect is 'follow', as per the Fetch API specification.

However, as per #220, that default behavior doesn't appear to be universally applied, in particular in older versions of Chrome and in more recent versions of Firefox.

This PR changes precaching requests to explicitly set redirect: 'follow' to ensure that the behavior is consistent instead of relying on the browser default. Since that was what I had expected the behavior to be already (in browsers following the spec), I think this should be a "safe" change, and will roll it out with an accompanying minor version bump.

Fixes #220

@gauntface
Copy link

gauntface commented Jan 3, 2017

Sorry got lost on the repo I was on - LGTM from me.

@jeffposnick jeffposnick merged commit 939743f into master Jan 4, 2017
@jeffposnick jeffposnick deleted the redirect-follow branch January 4, 2017 17:20
WillMoggridge added a commit to WillMoggridge/tutorials.ubuntu.com that referenced this pull request Jan 17, 2017
This installs polymer-cli and related tools in the local folder. It uses
npm shrinkwrap to upgrade sub dependency for sw-precache.

This is to prevent an issue in Firefox which has been fixed upstream
with: GoogleChromeLabs/sw-precache#233
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants