mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 15:55:16 +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:
@@ -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'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user