diff --git a/app.js b/app.js index f40358981..656c50834 100644 --- a/app.js +++ b/app.js @@ -152,7 +152,7 @@ app.use('/uploads', express.static(path.resolve(__dirname, config.uploadsPath), app.use('/default.md', express.static(path.resolve(__dirname, config.defaultNotePath), { maxAge: config.staticCacheTime })) // session -app.use(useUnless(['/status', '/metrics'], session({ +app.use(useUnless(['/status', '/metrics', '/_health'], session({ name: config.sessionName, secret: config.sessionSecret, resave: false, // don't save session if unmodified diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index fee0a924a..8a9780843 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -7,6 +7,7 @@ ### Bugfixes - Fix a crash when having numeric-only values in opengraph frontmatter +- Fix unnecessary session creation on healthcheck endpoint ## 1.9.9 2023-07-30