Just read the same that service workers are served over https and it might solve my problem :)
Thanks for your help Regards Mohit On 1 June 2016 at 07:45, Andrew Sutherland <asutherl...@asutherland.org> wrote: > Stack Overflow or other programmer discussion Q&A sites are probably > better venues for questions like this, such as under the stack overflow > service-worker tag, see: > http://stackoverflow.com/questions/tagged/service-worker . Being able to > browse the questions and answers of others may also help shed insight on > your problem. dev-platform, as described at > https://www.mozilla.org/en-US/about/forums/#dev-platform, is for > discussion of the implementation of the underlying functionality in the > context of Gecko. I had responded previously because I thought it might be > a simple thing where having someone else look at it helps and writing these > "sorry, you're in the wrong place" messages can take a while to write and > be frustrating to read. > > When posting there, I'd suggest being very explicit about the exact > situation you're testing and what you're expecting in terms of success or > failure. For example, seeing that you're using the gh-pages branch, I > tried accessing the page via the github.io url of > https://mbj36.github.io/My-Blog/ but that redirected to > http://mohitbajoria.com/ which, as a non-https origin (and apparently not > listening on the https port), is not eligible to use service workers at > all. That may be your problem, or it could be something else. > > It's probably worth experimenting with the devtools on a service-worker > enabled site such as https://www.pokedex.org/ that is known to work and > then comparing with your (test) site. Also, instrumenting your service > worker with console.log/etc. > > Andrew > > > On Tue, May 31, 2016, at 09:45 PM, Mohit Bajoria wrote: > > Hello > > I added "offline.html" in filesToCache but still the same problem arises. > When i refresh the page in absence of internet connection "offline.html" > doesn't show up. > > Github project link - https://github.com/mbj36/My-Blog/commits/gh-pages > > Please help > Thanks > Mohit > > On 31 May 2016 at 23:45, Andrew Sutherland <asutherl...@asutherland.org> > wrote: > > "offline.html" does not appear to be in filesToCache that is passed to > cache.addAll(). > > > On Mon, May 30, 2016, at 03:02 PM, Mohit Bajoria wrote: > > Hello > > > > There is offline.html page in repository. When there is no internet > > connection then it should show up reading from cache. > > Right now it doesn't read from cache and doesn't show up. > > > > > > > > On 31 May 2016 at 00:20, Ben Kelly <bke...@mozilla.com> wrote: > > > > > On May 30, 2016 1:55 PM, "Mohit Bajoria" <mohitbaj...@gmail.com> > wrote: > > > > Offline fallback event is not working. > > > > Can anyone please let me know the error and help me solving the > issue ? > > > > > > Can you describe what you expect and what you are actually seeing > happen? > > > > > > There is no "offline fallback event", so not sure exactly what you > mean. > > > > > > Thanks. > > > > > > Ben > > > > > _______________________________________________ > > dev-platform mailing list > > dev-platform@lists.mozilla.org > > https://lists.mozilla.org/listinfo/dev-platform > > > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform