move spdy related logic to backend