Workbox: Flexible PWA Libraries (Chrome Dev Summit 2017)

Поделиться
HTML-код
  • Опубликовано: 3 ноя 2024

Комментарии • 10

  • @ntgdpl
    @ntgdpl 7 лет назад +30

    Dude has chill ;)

  • @m7amedk
    @m7amedk 5 лет назад +2

    You guys rock! Workbox is the best thing for PWA 🎉

  • @flutterflowexpert
    @flutterflowexpert 5 лет назад +1

    why i am getting "Current page does not response with 200 when offline"

  • @romanshestakov
    @romanshestakov 5 лет назад

    Need to try this! 🙋‍♂️

  • @RaviSingh-ds2ei
    @RaviSingh-ds2ei 6 лет назад

    the worbox version 3.0.0 is not loading(failed to fetch resources) while loading service-worker can u help plz

  • @marlonlom
    @marlonlom 7 лет назад

    with PWA Libraries they mean using some official apis (fetch, push, etc.) ?

  • @kimgysen10
    @kimgysen10 5 лет назад

    I don't understand the use. Caching is already implemented by HTTP Cache-Control headers so unless you need a very complex strategy, it should already work without having another JS implementation client side...?

    • @9kopb
      @9kopb 5 лет назад +1

      example: JUST ONE ACTION: you open some /last.html page with short text & links list of latest five top articles... The network is down by some reason - and what you got with "Caching is already implemented by HTTP Cache-Control" - only cached last.html Your device still offline and you can just stare at list with links on content you wanted to read, but with #sw you can implement custom logic - get from API .json with {id, title, text} of last five news and without any connection sw.js can handle requests and do something - and you can click any link listed on /last.html and get full page content, but it's just an example of what you can't get with HTTP Cache-Control

    • @110-m5m
      @110-m5m 3 года назад

      @@9kopbworkboxSW.router.registerRoute(
      '/path/to/image',
      workboxSW.strategies.networkFirst({networkTimeoutSeconds: 3})
      );

    • @kimgysen10
      @kimgysen10 3 года назад

      @@9kopb Seems like a lot of work when my network is down like 0.001% of the time.