http2

.NET 4.6 HttpResponse.PushPromise methods to manage http/2 PUSH_PROMISE header

谁说胖子不能爱 提交于 2019-12-08 07:16:31
问题 I am a bit confused about PUSH PROMISE http/2 header handling in .NET4.6 . When I look HttpResponse.PushPromise there are two overloads: One that accepts path to resource public void PushPromise(string path) - am assuming resource is then read and binary sent across to client. Second public void PushPromise(string path, string method, NameValueCollection headers) that accepts sting method and NameValueCollection headers which I am failing to understand. Why would I want to pass method

cURL is not working with nghttp2

点点圈 提交于 2019-12-08 02:41:35
问题 I want to use http/2 with cURL. First I got an error when I tried this curl --http2 https://http2.akamai.com/ - "Protocol not supported" . I installed nghttp2 and reinstalled cURL like it is described here. The error is gone and I can get data with the curl --http2 now. But the page https://http2.akamai.com/ tells me "This browser is not HTTP/2 enabled" , while in chrome or directly via nghttp2 it says " You are using HTTP/2 right now!" . I'm using mac os x and installed all dependencies in

ASP.Net HTTP2 PushPromise is slow

女生的网名这么多〃 提交于 2019-12-07 13:45:02
问题 I'm trying to implement the Http2 push server functionality using "PushPromise" .NET 4.6.1, for this I have a "html extension" with Razor (we did not implement MVC only used the Razor engine to build the pages). public static IHtmlString PushPromiseStylesheet(this HtmlHelper htmlHelper, string src, bool addDomElement = true) { var context = HttpContext.Current; var path = System.Web.Optimization.Styles.Url(src).ToString(); var headers = new NameValueCollection { { "accept-encoding", context

What happens when a browser that supports SPDY receives an HTTP2 (H2) response?

一曲冷凌霜 提交于 2019-12-07 12:35:35
问题 My gut feeling is that a SPDY-capable browser will treat it as though it were a SPDY response. However, the most I can find is a reassurance that an H2 response will degrade gracefully to HTTP1.1. I'm considering serving assets in an H2 oriented manner (multiple requests, no domain sharding, etc.), but I do need to support some non-H2 browsers (e.g. Android 4.1's browser). Will I be OK if all the clients are at least SPDY compliant? Bonus question: are there any complications involved with

how do I compile cURL with openSSL and nghttp2 on Windows x64?

情到浓时终转凉″ 提交于 2019-12-07 11:53:37
问题 first question ever on here, so bear with me :) I've been on the web for the past 3 days trying to find a way to get the following result on my windows machine. example of 'cURL -V' output I need I've found a lot of stuff for macOS and unix, but only bits and pieces for Windows. I'm running xampp, and ultimately I'm trying to get it to send http/2 requests through cURL/PHP. What I've gathered so far is that I need cURL to be compiled with some libraries, like openssl (at least 1.0.2), libcurl

Is it necessary to cache bust in HTTP/2?

人走茶凉 提交于 2019-12-07 11:07:02
问题 In HTTP/1, to avoid extra network requests that would determine if resources should remain cached, we would set a high max-age or Expires value on static assets, and give them a unique URL for each revision. But in HTTP/2, requests are cheap, so can we get by without cache-busting, and just rely on ETags, last-modified, et al? The only advantage I can see with continuing to bust the cache (besides dually serving HTTP/1 and HTTP/2 clients) would be to save bandwidth checking if resources are

Why is Chrome queueing up requests when using HTTP/2?

坚强是说给别人听的谎言 提交于 2019-12-07 07:22:28
问题 I have a site that is using HTTP/2, and the site is slow to load images. Looking at Chrome's Devtools, most of the time is spent in "queueing" the network requests for the images. My understanding is that with HTTP/2, multiple requests may be made simultaneously over the same TCP connection, but I am seeing that Chrome is only issuing 6 requests simultaneously and queueing the rest (as if it were using HTTP/1.1). I know that it is using HTTP/2 since the "protocol" column in the "Network" tab

Does SPDY/HTTP2 concatenates responses?

纵饮孤独 提交于 2019-12-07 04:01:17
问题 I have a question about SPDY/HTTP2: Normally you concatenate multiple CSS and JS files into one file to save requests and to get a better performance. I heard that SPDY/HTTP2 combines multiple requests into a single response. Would that mean that I don't need to pre-concatenate CSS and JS files anymore, because this is handled by the protocol? To say it in other words: Can I use <script source="moduleA.js"></script> and <script source="moduleB.js"></script> with SPDY/HTTP2 in the same way as

Http2 - server-push with nodejs pushStream method do not working

非 Y 不嫁゛ 提交于 2019-12-06 12:29:59
问题 I am studying http2 on nodejs , but find out a issue pushStream method not working (client side do not show "Pushed/[fileName]" on developer tool) I wonder if the reason is nodejs version (i installed the latest version v9.8.0) My codes is the following : server.js 'use strict' const fs = require('fs'); const path = require('path'); const http2 = require('http2'); const utils = require('./utils'); const { HTTP2_HEADER_PATH } = http2.constants; const PORT = process.env.PORT || 3000; // The

Detect HTTP2/SPDY Support in Browser

和自甴很熟 提交于 2019-12-06 08:01:06
问题 Is it possible to detect a browser's support for HTTP2/SPDY client-side from within the browser? I am attempting to show users whether their browser supports HTTP2/SPDY or would use the traditional, non-HTTP2/SPDY HTTPs protocol. 回答1: No, not really. At least in a way that is meaningful or actionable. Frontend javascript would be running after the server has already served all of the assets. Everything you want to be doing will be done on the server side. A SPDY compliant browser should