Skip to content

Instantly share code, notes, and snippets.

View anil1712's full-sized avatar

Anil Kumar Pandey anil1712

  • Student
  • Bhilai (C.G.) India
View GitHub Profile
@anil1712
anil1712 / http2.js
Created May 17, 2020 05:35 — forked from davidgilbertson/http2.js
HTTP2 server with compression and caching
const http2 = require('http2');
const fs = require('fs');
const path = require('path');
const zlib = require('zlib');
const brotli = require('brotli'); // npm package
const PORT = 3032;
const BROTLI_QUALITY = 11; // slow, but we're caching so who cares
const STATIC_DIRECTORY = path.resolve(__dirname, '../dist/');
const cache = {};
Hello everyone, Actually Angularjs is new for me and I want to create a forum using this framework..... So please help me.