-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Performance enhancements #196
Conversation
…hub.com/dadi/web into feature/http2 # Conflicts: # dadi/lib/index.js
dadi/lib/view/public.js
Outdated
} | ||
} | ||
|
||
Public.prototype.openStream = function ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use an object argument instead? { res: res, file: file }
?
scripts/init-web.js
Outdated
@@ -1,23 +1,27 @@ | |||
#! /usr/bin/env node | |||
|
|||
var fs = require('fs') | |||
var path = require('path') | |||
var fs = require("fs") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single quotes preferred 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved 🐳
…formance # Conflicts: # config.js # dadi/lib/index.js # package.json
This is an awesome effort @abovebored 🚀 🌔 |
This contains most of the improvements from the on hold #167.
Closes #174.
Closes #175.
Closes #158.
Closes #168.
Closes #173.
Closes #51.
Closes #212.
Features
/lib/view/public.js
) for serving from the public folder - removed need for Express modules serve-static and serve-favicon.config.headers.useGzipCompression
toconfig.headers.useCompression
help.canCompress
which determines if caching is enabled on the system and tests if the client can accept a compressed outputzlib
forgzip
if not available)sendBackJSON
,sendBackHTML
intoview/send.js
sendBackJSONP
config.headers.useCompression
media
path.caching
is specified in the config.api/flush
. Added corresponding error page when method is notPOST
.sinon
at version 2 (3 not compatible withsinon-test
yet)npm run format
to run for standard & prettierenv
isproduction
To-do