We're not likely to have service worker support anytime soon. In the
first example you link the service worker is equivalent to marking
everything as "serve this stale from cache while you revalidate it",
which isn't the right behavior for a lot of (most?) sites. Service
workers are also very powerful, which means they're complex, and we
would need to be very careful not to step on something another service
worker was doing.
It's the sort of thing I would like to add at some point, but we don't
have any plans to work on it yet.
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ngx-pagespeed-di...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/ngx-pagespeed-discuss.
> For more options, visit
https://groups.google.com/d/optout.