constants.mjs 547 B

12345678910111213141516171819
  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 CACHE_UPDATED_MESSAGE_TYPE = 'CACHE_UPDATED';
  9. export const CACHE_UPDATED_MESSAGE_META = 'workbox-broadcast-update';
  10. export const DEFAULT_BROADCAST_CHANNEL_NAME = 'workbox';
  11. export const DEFAULT_DEFER_NOTIFICATION_TIMEOUT = 10000;
  12. export const DEFAULT_HEADERS_TO_CHECK = [
  13. 'content-length',
  14. 'etag',
  15. 'last-modified',
  16. ];