pluginEvents.mjs 546 B

1234567891011121314151617181920
  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 '../_version.mjs';
  8. export const pluginEvents = {
  9. CACHE_DID_UPDATE: 'cacheDidUpdate',
  10. CACHE_KEY_WILL_BE_USED: 'cacheKeyWillBeUsed',
  11. CACHE_WILL_UPDATE: 'cacheWillUpdate',
  12. CACHED_RESPONSE_WILL_BE_USED: 'cachedResponseWillBeUsed',
  13. FETCH_DID_FAIL: 'fetchDidFail',
  14. FETCH_DID_SUCCEED: 'fetchDidSucceed',
  15. REQUEST_WILL_FETCH: 'requestWillFetch',
  16. };