CodeShala / CodeShala/codeshala.org
Migrate from HTTP/1.1 to HTTP/2
- Lingua principale
- JavaScript
- Stelle
- 2
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The benefits of **H2** include:
- **Multiplexing:** Allows browsers to include multiple requests in a single TCP connection which in turn enables browsers to request all the assets in parallel.
- **Server push**: Servers can push web assets (CSS, JS, images) before a browser knows it needs them which speeds up page load times by reducing number of requests.
- **Stream priority**: Allows browsers to specify priority of assets. For example, browser can request HTML first to render it before any styles or JavaScript.
- **Header compression**: All HTTP/1.1 requests have to have headers which are typically duplicate the same info, while H2 forces all HTTP headers to be sent in a compressed format.
- **De facto mandatory encryption:** Although the encryption is not required, most major browsers implement H2 only over TLS (HTTPS).
PS: Try to implement Server Push Functionality
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.