Http2 - server-push with nodejs pushStream method do not working
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 files are pushed to stream here function push(stream, path) { const file = utils.getFile(path); if (!file)