<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <title>Service Workers</title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <script
    src="../assets/web-spec-framework/bower_components/platform/platform.js">
  </script>
  <link rel="import"
      href="../assets/web-spec-framework/framework.html"/>
  <!--
  <link rel="stylesheet" href="../assets/styles/spec.css" type="text/css">
  <link rel="stylesheet" href="../assets/styles/prettify.css" type="text/css">
  <link rel="stylesheet" href="../assets/styles/third_party/W3C-ED.css" type="text/css" >
  <script src="../assets/scripts/bug-assist.js"></script>
  <script src="../assets/scripts/spec-assist.js"></script>
  <script src="../assets/scripts/prettify.js"></script>
  -->
  <!-- <meta name="bug.blocked" content="14968"> -->
  <meta name="bug.short_desc" content="[ServiceWorker]: ">
  <meta name="bug.product" content="WebAppsWG">
  <meta name="bug.component" content="ServiceWorker">
</head>
<body>

<div class="head">
  <div class="logo">
    <a href="//www.w3.org/"><img width="72" height="48" src="//www.w3.org/Icons/w3c_home" alt="W3C"></a>
  </div>

  <h1>Service Workers</h1>
  <h2 id="editors-draft">W3C Editor's Draft</h2>
  <dl>
  <dt>This version</dt>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html">https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html</a></dd>
  <dt>Latest editor's draft</dt>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html">https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html</a></dd>
  <dt>Previous version</dt>
    <dd><a href="http://www.w3.org/TR/service-workers/">http://www.w3.org/TR/service-workers/</a></dd>
  <dt>Revision history</dt>
    <dd><a id="log" href="https://github.com/slightlyoff/ServiceWorker/commits/master">https://github.com/slightlyoff/ServiceWorker/commits/master</a></dd>
  <dt>Participate</dt>
    <dd>Discuss on <a href="http://lists.w3.org/Archives/Public/public-webapps/">public-webapps@w3.org</a> (<a href="http://www.w3.org/2008/webapps/">Web Applications Working Group</a>)</dd>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/issues">File bugs</a></dd>
  <dt>Editors</dt>
    <dd class="vcard"><span class="fn"><NAME></span>, <span class="org">Google</span>, &lt;<a class="email" href="mailto:<EMAIL>"><EMAIL></a>&gt;</dd>
    <dd class="vcard"><span class="fn"><NAME></span>, <span class="org">Samsung Electronics</span>, &lt;<a class="email" href="mailto:<EMAIL>"><EMAIL></a>&gt;</dd>
  </dl>

  <p class="copyright">
    <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 2014 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>&copy;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. <abbr title="World Wide Web Consortium">W3C</abbr> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
  </p>

  <hr>

  <h2 id="abstract">Abstract</h2>

  <p>This specification describes a method that enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.</p>

  <p>The core of this system is an event-driven <a href="http://www.w3.org/TR/workers/">Web Worker</a>, which responds to events dispatched from documents and other sources. A system for managing installation, versions, and upgrades is provided.</p>

  <p>The Service Worker is a generic entry point for event-driven background processing in the Web Platform that is <a href="#extensibility">extensible by other specifications</a>.</p>

  <h2 id="status">Status of This Document</h2>

  <p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at http://www.w3.org/TR/.</em></p>

  <p>This document was published by the <a href="http://www.w3.org/2008/webapps/">Web Applications Working Group</a> as an Editor's Draft. If you wish to make comments regarding this document, please send them to <a href="mailto:<EMAIL>"><EMAIL></a> (<a href="mailto:<EMAIL>?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-webapps/">archives</a>). All feedback is welcome.</p><p>Publication as an Editor's Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr> Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.</p>

  <p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="http://www.w3.org/2004/01/pp-impl/45559/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.</p>
</div>

<spec-toc></spec-toc>

<!--
<ol>
  <li><a href="#introduction">Introduction</a>
  <ol>
    <li><a href="#about">About this Document</a></li>
    <li><a href="#dependencies">Dependencies</a></li><commit_msg>Add Beihang Uni in the copyright<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <title>Service Workers</title>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  <script
    src="../assets/web-spec-framework/bower_components/platform/platform.js">
  </script>
  <link rel="import"
      href="../assets/web-spec-framework/framework.html"/>
  <!--
  <link rel="stylesheet" href="../assets/styles/spec.css" type="text/css">
  <link rel="stylesheet" href="../assets/styles/prettify.css" type="text/css">
  <link rel="stylesheet" href="../assets/styles/third_party/W3C-ED.css" type="text/css" >
  <script src="../assets/scripts/bug-assist.js"></script>
  <script src="../assets/scripts/spec-assist.js"></script>
  <script src="../assets/scripts/prettify.js"></script>
  -->
  <!-- <meta name="bug.blocked" content="14968"> -->
  <meta name="bug.short_desc" content="[ServiceWorker]: ">
  <meta name="bug.product" content="WebAppsWG">
  <meta name="bug.component" content="ServiceWorker">
</head>
<body>

<div class="head">
  <div class="logo">
    <a href="//www.w3.org/"><img width="72" height="48" src="//www.w3.org/Icons/w3c_home" alt="W3C"></a>
  </div>

  <h1>Service Workers</h1>
  <h2 id="editors-draft">W3C Editor's Draft</h2>
  <dl>
  <dt>This version</dt>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html">https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html</a></dd>
  <dt>Latest editor's draft</dt>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html">https://github.com/slightlyoff/ServiceWorker/tree/master/spec/service_worker/index.html</a></dd>
  <dt>Previous version</dt>
    <dd><a href="http://www.w3.org/TR/service-workers/">http://www.w3.org/TR/service-workers/</a></dd>
  <dt>Revision history</dt>
    <dd><a id="log" href="https://github.com/slightlyoff/ServiceWorker/commits/master">https://github.com/slightlyoff/ServiceWorker/commits/master</a></dd>
  <dt>Participate</dt>
    <dd>Discuss on <a href="http://lists.w3.org/Archives/Public/public-webapps/">public-webapps@w3.org</a> (<a href="http://www.w3.org/2008/webapps/">Web Applications Working Group</a>)</dd>
    <dd><a href="https://github.com/slightlyoff/ServiceWorker/issues">File bugs</a></dd>
  <dt>Editors</dt>
    <dd class="vcard"><span class="fn"><NAME></span>, <span class="org">Google</span>, &lt;<a class="email" href="mailto:<EMAIL>"><EMAIL></a>&gt;</dd>
    <dd class="vcard"><span class="fn"><NAME></span>, <span class="org">Samsung Electronics</span>, &lt;<a class="email" href="mailto:<EMAIL>"><EMAIL></a>&gt;</dd>
  </dl>

  <p class="copyright">
    <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 2014 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>&copy;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>), All Rights Reserved. <abbr title="World Wide Web Consortium">W3C</abbr> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
  </p>

  <hr>

  <h2 id="abstract">Abstract</h2>

  <p>This specification describes a method that enables applications to take advantage of persistent background processing, including hooks to enable bootstrapping of web applications while offline.</p>

  <p>The core of this system is an event-driven <a href="http://www.w3.org/TR/workers/">Web Worker</a>, which responds to events dispatched from documents and other sources. A system for managing installation, versions, and upgrades is provided.</p>

  <p>The Service Worker is a generic entry point for event-driven background processing in the Web Platform that is <a href="#extensibility">extensible by other specifications</a>.</p>

  <h2 id="status">Status of This Document</h2>

  <p><em>This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision of this technical report can be found in the <a href="http://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports index</a> at http://www.w3.org/TR/.</em></p>

  <p>This document was published by the <a href="http://www.w3.org/2008/webapps/">Web Applications Working Group</a> as an Editor's Draft. If you wish to make comments regarding this document, please send them to <a href="mailto:<EMAIL>"><EMAIL></a> (<a href="mailto:<EMAIL>?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-webapps/">archives</a>). All feedback is welcome.</p><p>Publication as an Editor's Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr> Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.</p>

  <p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>. <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="http://www.w3.org/2004/01/pp-impl/45559/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.</p>
</div>

<spec-toc></spec-toc>

<!--
<ol>
  <li><a href="#introduction">Introduction</a>
  <ol>
    <li><a href="#about">About this Document</a></li>
    <li><a href="#dependencies">Dependencies</a></li>
{'fraction_non_alphanumeric': 0.18217851970424576, 'fraction_numerical': 0.016007317630916992, 'mean_word_length': 5.032183908045977, 'pattern_counts': {'":': 0, '<': 407, '<?xml version=': 0, '>': 405, 'https://': 14, 'lorem ipsum': 0, 'www.': 42, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2989310', 'n_tokens_mistral': 4543, 'n_tokens_neox': 4206, 'n_words': 990}