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
- Host: GitHub
- URL: https://github.com/aj-dev/nodejs-http2-server-push
- Owner: aj-dev
- Created: 2020-02-21T17:42:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-01T07:03:29.000Z (about 4 years ago)
- Last Synced: 2025-04-02T11:12:55.094Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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