Skip to content
Snippets Groups Projects
Commit 90e3c325 authored by richard.petersen's avatar richard.petersen :sailboat:
Browse files

fixed: OXUIB-1631 UI-middleware memory spikes after startup (2)

Use correct path for index.html for the memory lookup
parent c4fcec5f
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,12 @@ export default async function (req, res, next) {
try {
if (req.method !== 'GET') return next()
const version = res.version
const path = req.path === '/' ? '/index.html' : req.path
let data = await loadFromCache({
path: req.path,
path,
version
})
if (!data) {
const path = req.path === '/' ? '/index.html' : req.path
data = await saveAsyncToCache({ version, path, promise: fetchFileWithHeaders({ path, version }) })
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment