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

Ensure serviceworker bypass only checks path #10820

Merged
merged 1 commit into from
Oct 12, 2020
Merged

Conversation

benhalpern
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This functionality naively checks for which paths to skip over for service workers. The reason it can be pretty naive is that it is not that big a deal if it's a little too aggressive. Occasionally skipping service workers is fine.

But one problem is that https://forem.dev _includes /forem........ Which is a problem because it always skipped over and did nothing. This changes the code to check only path, which is what it should have been before.

There is definitely still a need to make this more precise, but for now this solves this particular defect.

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Oct 12, 2020
@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Oct 12, 2020
Copy link
Contributor

@juliannatetreault juliannatetreault left a comment

Choose a reason for hiding this comment

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

👍

@benhalpern benhalpern merged commit 431a003 into master Oct 12, 2020
@benhalpern benhalpern deleted the ben/fix-serviceworker branch October 12, 2020 21:52
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Oct 12, 2020
boardfish pushed a commit to boardfish/forem that referenced this pull request Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants