Closed
Bug 1296656
Opened 9 years ago
Closed 7 years ago
Investigate Using Service Workers to Speed Up Site
Categories
(MozReview Graveyard :: Review Board: User Interface, defect)
MozReview Graveyard
Review Board: User Interface
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: davidwalsh, Unassigned)
References
Details
Attachments
(1 obsolete file)
A few requests that maybe can be sped up using SW's:
- Static assets (We don't push all that often)
- Diff file requests (They take a long time and are done synchronously :/)
- More
Comment 1•9 years ago
|
||
We need to have https supported in our dev and testing environments to make progress here.
Depends on: 1291720
Comment 2•9 years ago
|
||
(In reply to Mark Côté [:mcote] from comment #1)
> We need to have https supported in our dev and testing environments to make
> progress here.
I investigated a few ways to get Service Workers running in our dev environment. All the information I found says there is no way to easily avoid cert errors working with SSL in local development, and bug 1291720 says it will be a pain to set up, so I focused my search for ways to use Service Workers without HTTPS.
Service Workers will work without HTTPS in Firefox and Chrome for http://localhost (see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Developer_tools). However, AFAICT docker-machine and vagrant boxes both serve the site on 192.168.*.* or some similar internal IP, so the browser won't let the workers run if you hit the VM directly.
We could try making the services in the VM show up on localhost. Vagrant supports forwarding ports from the VM to localhost (https://www.vagrantup.com/docs/networking/forwarded_ports.html). docker-machine does, too (http://stackoverflow.com/a/36286446). That could make our dev environment show up on localhost:55655, in which case Service Workers might work.
| Comment hidden (mozreview-request) |
If you open DevTools in Firefox, go to options (gear icon), you can check "Enable Service Workers over HTTP" for testing. However, it only applies while the DevTools are open.
| Reporter | ||
Updated•8 years ago
|
Attachment #8805606 -
Attachment is obsolete: true
Comment 5•7 years ago
|
||
MozReview is now obsolete. Please use Phabricator instead. Closing this bug.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•