ServiceWorkers Articles
-
Progressive Web Apps core guides on MDN Web Docs
Introducing the newly released Core PWA Guides on the MDN Web Docs site. Progressive Web Apps (PWAs) are a new way of building websites, but are they really all that new? Key PWA strategies and associated features include progressive enhancement, responsive design, and mobile-first thinking.
-
Mozilla Push Server now supports topics
The Mozilla Push Service now offers the capability to provide topics for notification messages. This means that any user agent subscribed to the application will only be provided with the last message in a topic when it returns from an offline state.
-
Offline strategies come to the Service Worker Cookbook
serviceworke.rs is a compendium of common and uncommon Service Worker use cases including push examples, usage patterns, performance tips and caching strategies. Service Worker Cookbook recipes are presented as playgrounds or labs, with fully functional client-server setups, where you can learn and experiment with results using in-browser developer tools. Still, the cookbook is far from […]
-
Referrer and cache control APIs for fetch()
Around a year ago, we wrote about the new fetch() API. The WHATWG Fetch API provides a modern way to fetch network resources and gives you fine grained control over the details of the request and response. If you’re not familiar with the Fetch API, it would be a nice idea to read about it […]
-
Debugging Service Workers and Push with Firefox DevTools
Following the announcement of Web Push in Firefox 44, we’re now delivering the capability to develop and debug service workers and push notifications code with DevTools using Firefox Developer Edition 47. Here’s a screencast that demonstrates the features described in this post: Or if you prefer text, keep reading! about:debugging Service workers do not behave […]
-
Web Push Arrives in Firefox 44
Updated, 2016-02-20: The Push service now requires an explicit “TTL” header on requests to an endpoint. The article has been updated to reflect this. More details on the Mozilla Services Blog. Have you ever wished that a website could notify you when something important happened, even if you didn’t have the site open? Maybe you’ve […]
-
Beyond Offline
This is my first post on Mozilla Hacks and despite my personal blog, it is my first post as a mozillian (yay!). During this month I’ve been working in the Service Worker Cookbook project —part of the Web Application Developer Initiative (WADI)— which gives me the opportunity to put my expertise in Service Workers into […]
-
Web Push notifications from Irssi
Our main communication tool at Mozilla is IRC. I’m running an IRC client called Irssi under screen on a server constantly connected to the network. It’s a close-to-perfect solution with only two outstanding issues for me. One is the lack of emoji characters (I can live with that). The other is more important: there is […]
-
Offline Web Apps on GitHub Pages
Service Workers are a response to the problems of Application Cache, and they’re a powerful and elegant way to offline your web app. But they’re also more complex to implement and maintain. Meanwhile, GitHub Pages is a great, simple static host for offline-first apps. But deploying apps to GitHub Pages requires manual configuration, especially if […]
-
Offline Recipes for Service Workers
“Offline” is a big topic these days, especially as many web apps look to also function as mobile apps. The original offline helper API, the Application Cache API (also known as “appcache”), has a host of problems, many of which can be found in Jake Archibald’s Application Cache is a Douchebag post. Problems with appcache […]