1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Add some max-age to device and browser icons so that they can be served directly from cache.

This commit is contained in:
Simo Kinnunen 2014-07-02 15:16:48 +09:00
parent d51da4b215
commit c5d79c7b80
2 changed files with 14 additions and 6 deletions

View file

@ -1,8 +1,12 @@
var express = require('express')
var serveStatic = require('serve-static')
var pathutil = require('../../../util/pathutil')
module.exports = function() {
return express.static(
pathutil.root('node_modules/stf-browser-db/dist'))
return serveStatic(
pathutil.root('node_modules/stf-browser-db/dist')
, {
maxAge: '30d'
}
)
}