stefanjudis / perf-tooling

List of performance analysis, monitoring and optimization tools
perf-tooling.today
645 stars 80 forks source link

Make it work offline #778

Open stefanjudis opened 9 years ago

stefanjudis commented 9 years ago

I'd like to play around with Service Workers.

What do you think, wanna implement it here?

marcobiedermann commented 9 years ago

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

stefanjudis commented 9 years ago

@marcobiedermann can you point me somewhere proving that?

Never heard that TLS is mandatory for Service Workers.

ben-eb commented 9 years ago

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

stefanjudis commented 9 years ago

Hah!

Well then let's do it. :)

thanks @ben-eb for shout out.

rupl commented 8 years ago

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?

stefanjudis commented 8 years ago

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. :)

rupl commented 8 years ago

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

stefanjudis commented 8 years ago

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

rupl commented 8 years ago

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

stefanjudis commented 8 years ago

:+1:

marcobiedermann commented 8 years ago

@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.

stefanjudis commented 8 years ago

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

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

rupl commented 8 years ago

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.

stefanjudis commented 8 years ago

:+1: @rupl

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

rupl commented 8 years ago

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.

stefanjudis commented 8 years ago

Sounds perfect!