index.js 862 B

12345678910111213141516171819202122
  1. /*
  2. Copyright 2018 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import { CacheFirst } from './CacheFirst.js';
  8. import { CacheOnly } from './CacheOnly.js';
  9. import { NetworkFirst } from './NetworkFirst.js';
  10. import { NetworkOnly } from './NetworkOnly.js';
  11. import { StaleWhileRevalidate } from './StaleWhileRevalidate.js';
  12. import { Strategy } from './Strategy.js';
  13. import { StrategyHandler } from './StrategyHandler.js';
  14. import './_version.js';
  15. /**
  16. * There are common caching strategies that most service workers will need
  17. * and use. This module provides simple implementations of these strategies.
  18. *
  19. * @module workbox-strategies
  20. */
  21. export { CacheFirst, CacheOnly, NetworkFirst, NetworkOnly, StaleWhileRevalidate, Strategy, StrategyHandler, };