Skip to content

Commit 76e13f4

Browse files
authored
Merge pull request #60 from adorableio/add-cache-header
Add cache header
2 parents 80afa02 + 9c71ce8 commit 76e13f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ if (process.env.NODE_ENV === 'production') {
3232
app.use(tracker);
3333
}
3434

35+
app.use(function(req, res, next) {
36+
res.set('Cache-Control', 'public, max-age=31557600');
37+
38+
next();
39+
});
3540
import routesV1 from './routes/v1';
3641
import routesV2 from './routes/v2';
3742

0 commit comments

Comments
 (0)