diff --git a/lolisafe.js b/lolisafe.js index ef7384c..b6b5ea2 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -146,8 +146,6 @@ if (config.cacheControl) { // By default soft cache everything safe.use('/', (req, res, next) => { - // FIXME: Routes further down the line that may set their own Cache-Control headers, - // will end up with multiple headers res.set('Cache-Control', cacheControls.validate) return next() }) diff --git a/package.json b/package.json index 3d6b03c..79dbb9b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "fastq": "~1.13.0", "fluent-ffmpeg": "~2.1.2", "helmet": "~5.1.0", - "hyper-express": "^6.2.4", + "hyper-express": "~6.2.5", "jszip": "~3.10.0", "knex": "~2.1.0", "live-directory": "^2.3.2", diff --git a/yarn.lock b/yarn.lock index 069ef66..d392b1e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3108,10 +3108,10 @@ https-proxy-agent@^5.0.0: agent-base "6" debug "4" -hyper-express@^6.2.4: - version "6.2.4" - resolved "https://registry.yarnpkg.com/hyper-express/-/hyper-express-6.2.4.tgz#9a36b10a712f953ac8ee45212c220e919a7a875e" - integrity sha512-jZNtQItuso5jJVeeu6Zuw1dB17xcSd6Ey4bOilOIt/QDFhLmzpuWPzG6VFk748+JMQMtlzqRFlbGNApeyOATtw== +hyper-express@~6.2.5: + version "6.2.5" + resolved "https://registry.yarnpkg.com/hyper-express/-/hyper-express-6.2.5.tgz#2cbd2d703495ed241a8da29abaf156490d3fe309" + integrity sha512-Jj7R+mkxwE2/m8H4A+8Ojn/BhJRkzGvYMWU9+wl/Ljhle67H4yStR5izK5oyfUGAmAwX2uM9PocXm+Ae+KT07Q== dependencies: "@types/busboy" "^0.3.1" "@types/express" "^4.17.13"