Skip to content

Commit cc8b359

Browse files
committed
add caching for static assets
1 parent d7d5d75 commit cc8b359

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/miniprofiler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function assets(req, res, lastPathSegment, done) {
120120
});
121121
} else {
122122
var rs = lastPathSegment.split('.');
123+
res.setHeader('Cache-Control', 'public, max-age=31557600');
123124
done({
124125
type: contentTypes[rs[rs.length - 1]],
125126
status: 200,

0 commit comments

Comments
 (0)