import Hummingbird extension Assets { /// One embedded file. The CSS and JS change only with a new build, and /// the page links app.css and app.js with the build version, so /// browsers may keep them for a day. static func response(_ text: String, type: String) -> Response { Response( status: .ok, headers: [.contentType: type, .cacheControl: "public, max-age=86400"], body: .init(byteBuffer: ByteBuffer(string: text)) ) } }