function servePublicFile(file, type, maxAge) {
    const publicFileMiddleware = createPublicFileMiddleware(file, type, maxAge);

    return function servePublicFile(req, res, next) {
        if (req.path === '/' + file) {
            return publicFileMiddleware(req, res, next);
        } else {
            return next();
        }
    };
}
function servePublicFile(file, type, maxAge) {
    const publicFileMiddleware = createPublicFileMiddleware(file, type, maxAge);

    return function servePublicFile(req, res, next) {
        if (req.path === '/' + file) {
            return publicFileMiddleware(req, res, next);
        } else {
            return next();
        }
    };
}
function servePublicFile ( file , type , maxAge ) { const publicFileMiddleware = createPublicFileMiddleware ( file , type , maxAge ) ; return function servePublicFile ( req , res , next ) { if ( req . path === '/' + file ) { return publicFileMiddleware ( req , res , next ) ; } else { return next ( ) ; } } ; }
### servePublicFile Middleware Handles requests to robots.txt and favicon.ico (and caches them)
### servePublicFile Middleware Handles requests to robots . txt and favicon . ico ( and caches them )
servePublicFile - Creates a middleware that will serve public files