Server push

based on code by indutny