Skip to content

Express with HTTP2 support and Server Push and ServiceWorker example app ✨🚀✨

Notifications You must be signed in to change notification settings

kazu69/express-http2-serviceworker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express with HTTP2 and Server Push and ServiceWorker ✨🚀✨

Express with HTTP2 Example. Server Push Example. ServiceWorker Cache.

Try HTTP2

Please make sure sure you add nghttp2 in advance libcurl If you'd like to try it on curl

brew install curl --with-nghttp2

docker build -t express-server .
docker run -tid -p 3000:3000 express-server

Try Server Push

Chrome browser: https//localhost:3000/push/ to access.

Try Server Push and Service Worker Cache.

When accessing for the first time, Assets file is delivered with Server Push.

Chrome browser: https//localhost:3000/ to access.

After the second time, the Service Worker intercepts the HTTP request and delivers the Assets file from the cache.

Chrome browser: https//localhost:3000/ to next access.

Response too fast ! ✨🚀✨

About

Express with HTTP2 support and Server Push and ServiceWorker example app ✨🚀✨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published