Ruby server downloading only once
Mixing Jhonber code with my optimization, not tested