diff --git a/api/hooks/ssr/get_read.js b/api/hooks/ssr/get_read.js index 04bdc2d..dd9b0eb 100644 --- a/api/hooks/ssr/get_read.js +++ b/api/hooks/ssr/get_read.js @@ -142,7 +142,13 @@ var utils = require("../lib/utils") JSON.stringify(context.ssrCache) + "" - cacheIt = true + // status from webapp + // @ts-ignore + if (context.is404) { + status = 404 + } else { + cacheIt = true + } } catch (e) { utils.log(e.message) utils.log(e.stack)