perf-tooling icon indicating copy to clipboard operation
perf-tooling copied to clipboard

Make it work offline

Open stefanjudis opened this issue 9 years ago • 16 comments

I'd like to play around with Service Workers.

What do you think, wanna implement it here?

stefanjudis avatar Jun 17 '15 07:06 stefanjudis

I think we would need a SSL certificate for that. But I am 100% pro this implementation.

marcobiedermann avatar Jun 17 '15 11:06 marcobiedermann

@marcobiedermann can you point me somewhere proving that?

Never heard that TLS is mandatory for Service Workers.

stefanjudis avatar Jun 17 '15 11:06 stefanjudis

http://www.w3.org/TR/service-workers/#security-considerations

ben-eb avatar Jun 17 '15 13:06 ben-eb

Hah!

Well then let's do it. :)

thanks @ben-eb for shout out.

stefanjudis avatar Jun 17 '15 13:06 stefanjudis

This thing is hosted on Heroku, right? SSL is $20/month, not a terrible cost. I'd donate a few months' worth to the cause :bowtie: Or does Fastly have some option they could enable, since they are your generous sponsor at the moment?

Either way, the site is screaming for SW treatment, and it appears that the current architecture (most interactions are client-side) means SW would be a snap. One load and the app is installed, then the client-side search takes over from there.

Actually following links is another story. But still, it would be possible to browse the lists offline, maybe mark them for consumption when connection returns?

rupl avatar Nov 15 '15 16:11 rupl

hey hey.

It's already on a payed heroku account. ;)

Yeah man, I'd love to have that ( and to start playing with SW ). Time is the issue here. ;)

@rupl let me open an issue for HTTPS and then maybe go on with this further soon'ish. :)

stefanjudis avatar Nov 15 '15 16:11 stefanjudis

yeah man! I am unemployed right now so I have time to play around. I've never actually deployed any SW stuff but you gotta start somewhere

rupl avatar Nov 15 '15 16:11 rupl

Well I'd love to give you access and/or play around with this. ;)

stefanjudis avatar Nov 15 '15 16:11 stefanjudis

excellent! and the HTTPS issue wont block development since localhost is a valid SW host

rupl avatar Nov 15 '15 16:11 rupl

:+1:

stefanjudis avatar Nov 15 '15 16:11 stefanjudis

@stefanjudis CloudFlare offers a free SSL certificate. It's a one click setup. Just create a free account and add your domain. Change SSL connection to "flexible" and set the page rule to "always use HTTPS". This should take around 24h to kick in.

marcobiedermann avatar Dec 07 '15 08:12 marcobiedermann

Then still I have to configure heroku to use this and pay for it. ;)

Also I'd like to use https://letsencrypt.org/ instead. :)

stefanjudis avatar Dec 07 '15 08:12 stefanjudis

I've been tinkering on my own site for the last two days and think I will have a first pass for this site soon. It can be tested SSL-free on localhost hostname.

rupl avatar Dec 07 '15 09:12 rupl

:+1: @rupl

Let me know when I have to hurry up with the TLS. :)

stefanjudis avatar Dec 07 '15 09:12 stefanjudis

small update: the initial SW is a snap to put together, but I'm still trying stuff out on my site. Busting the cache is important for a content-driven site like this one so I want to get it working smooth before we roll it out at all.

rupl avatar Dec 11 '15 15:12 rupl

Sounds perfect!

stefanjudis avatar Dec 11 '15 19:12 stefanjudis