Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Note from 2 March 2020

  • Nicolas Hoizey
  • 2 March 2020
  • PWA, Rollup, Service Worker, Workbox
  • 2 reactions

Tried to write a fresh new Service Worker with #Workbox 5 and #Rollup (first time ever), almost copy/pasted from what @jeffposnick did in https://github.com/GoogleChromeLabs/so-pwa but I get a strange error reporting mixed content… 😥

2 reactions

2 replies

  1. Jeff Posnick avatar Jeff Posnick
    Can you check your web server setup? It looks like a request for /index.html results in a 301 Redirect for /.

    That 301 Redirect switches the scheme from https:// to http://
    • 2 March 2020, 16:03
    • Source
  2. Nicolas Hoizey avatar Nicolas Hoizey
    OMG, that’s it! 🤦‍♂️

    I forgot to add explicit HTTPS to some of my numerous redirections performed by Apache, which only sees HTTP, behind a HTTPS proxy:
    github.com/nhoizey/nicola…

    Thanks a lot Jeff! 👍
    • 2 March 2020, 17:45
    • Source
  • Older: Note from 29 February 2020
  • Newer: Note from 2 March 2020

Related contents with similar topics

  1. screenshot of A Local-First Case Study

    Jake Lazaroff avatar Jake Lazaroff

    A Local-First Case Study

    • Nicolas Hoizey
    • 7 October 2024
    • PWA, Service Worker, offline
    • 11 reactions

    It helps a lot that various libraries in the ecosystem compose well. Just snapping together ProseMirror, Yjs and Y-Sweet gave me a collaborative rich…

  2. Note from 31 May 2023

    • Nicolas Hoizey
    • 31 May 2023
    • PWA, Service Worker, Workbox
    • 3 reactions

    Who still thinks writing a Service Worker for basic features (performance with cache, offline fallback) is cumbersome?

    Using #Workbox recipes make it so easy!

    Here's the Service Worker for https://pack11ty.dev 😍

    https://github.com/nhoizey/pack11ty/blob/main/src/assets/js/service-worker.js

  3. Note from 13 May 2023

    • Nicolas Hoizey
    • 13 May 2023
    • Eleventy, esbuild, Service Worker, Workbox

    If someone is creating service workers with #Workbox recipes and injectManifest, a build with #esbuild, and doesn't have any issues, I'm interested! 😅

    I have a very strange issue:

    https://github.com/GoogleChrome/workbox/issues/3207

    Bonus points if this is with #Eleventy

  4. Note from 6 May 2023

    • Nicolas Hoizey
    • 6 May 2023
    • Service Worker, Workbox
    • 1 reaction

    Is it ok to use Workbox's injectManifest with the recent recipes warmCache option?

    I tried this without success in the Service Worker in Pack11ty:

    staticResourceCache({
      warmCache: self.__WB_MANIFEST,
    });

    Other caches are warmed up, not this one.

  5. screenshot of How do you test a service worker, anyway?

    Jeff Posnick avatar Jeff Posnick

    How do you test a service worker, anyway?

    • Nicolas Hoizey
    • 4 December 2022
    • PWA, Service Worker, test
    • 5 reactions

    if you're writing a service worker from scratch, if you're using one of Workbox's more exotic plugins or custom strategies, or if your service worker's…

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy