Skip to content

Commit c450970

Browse files
author
Charlie Key
committed
added some comments to doc
1 parent 45ec2f3 commit c450970

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
var express = require('express');
22
var app = express();
33

4+
// The number of milliseconds in one day
45
var oneDay = 86400000;
56

7+
// Use compress middleware to gzip content
68
app.use(express.compress());
79

10+
// Serve up content from public directory
811
app.use(express.static(__dirname + '/public', { maxAge: oneDay }));
912

1013
app.listen(process.env.PORT || 3000);

0 commit comments

Comments
 (0)