Use HEAD request for prespawn_ruby_application function