An open API service indexing awesome lists of open source software.

https://github.com/aj-dev/nodejs-http2-server-push

HTTP/2 Server Push feature with Node.js
https://github.com/aj-dev/nodejs-http2-server-push

Last synced: 8 months ago
JSON representation

HTTP/2 Server Push feature with Node.js

Awesome Lists containing this project

README

          

# A simple demonstration of HTTP/2 Server Push feature with Node.js
Pushes CSS, JS, JSON alongside index.html

## Prerequisites
- Node.js >= v12.16.0
- https://github.com/FiloSottile/mkcert for managing SSL certs locally

## Usage
```
brew install mkcert
mkcert -install
```

In project root run:
```
mkcert localhost
npm i
npm start
```
Open https://localhost:8080 and observe HTTP requests in Network tab of dev tools and console logs from the server in the terminal