Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/recipes precache and normalize #2718

Merged

Commits on Jan 8, 2021

  1. Add warmStrategyCache recipe

    Takes an array of items and a Workbox Strategy and warms the strategy’s cache with those items at install. Useful for getting specific items into cache but allowing them to be updated outside of the Service Worker install cycle
    Snugug committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    24e8d4c View commit details
    Browse the repository at this point in the history
  2. Add warmCache and plugins options

    Give users of page/image/resource recipes the ability to warm those caches using warmStrategyCache functionality. Also allows them to include plugins if desired (for instance, to normalize URLs coming into the cache)
    Snugug committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    f2b1f2b View commit details
    Browse the repository at this point in the history
  3. Remove offlineFallback dependency on precache

    While precache will still work, and that will be tried first, the files will be saved in a workbox-offline-fallbacks cache and the cache will try to be retrieved from there if precache fails.
    Snugug committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    032d0d7 View commit details
    Browse the repository at this point in the history
  4. Add missing newline

    Snugug committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    482a947 View commit details
    Browse the repository at this point in the history
  5. Export warmStrategyCache

    Snugug committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    ba58724 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. Update packages/workbox-recipes/src/warmStrategyCache.ts

    Co-authored-by: Jeffrey Posnick <jeffy@google.com>
    Snugug and jeffposnick committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    2dfdebc View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2021

  1. Rename 'warm' and 'paths'

    Improves clarity of each, pre PR review request
    Snugug committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    3fe548a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e689bb View commit details
    Browse the repository at this point in the history