title: Service Worker generated by polymer does not work when i override the host in polymer serve or if i use HTTPS protocol
body: <p>I am new to <code>polymer</code> and I am trying to build a <code>PWA</code> application. I followed their starter kit which can be viewed <a href="https://pwa-starter-kit.polymer-project.org/setup" rel="nofollow noreferrer">here</a>. But I cant make the generated <code>service-worker.js</code> work when i pass <code>-P https</code> or <code>-H 192.168.10.98</code> on polymer serve command. Although not passing the parameters makes the service-worker work without any errors.</p>
  
  <p>This is how I follow the instruction in the way I understood them, </p>
  
  <ol>
  <li><p>First I do polymer build</p></li>
  <li><p>Then I copy the folder inside the build file with the es* bundle that i want.</p></li>
  <li><p>Inside the copied folder I do <code>polymer serve</code>.</p></li>
  </ol>
  
  <p>If I execute polymer serve alone, everything in service worker works fine,</p>
  
  <p>But when i do <code>polymer serve -P https</code> or <code>polymer serve -H 192.168.10.98</code>
  the app gets loaded but without the <code>PWA</code> service worker functionality which is resiliency in offline situation.</p>
  
  <p>I am stuck with this problem for days and I will really appreciate any help regarding this</p>