diff options
author | terminaldweller <thabogre@gmail.com> | 2021-04-11 10:48:54 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-04-11 10:48:54 +0000 |
commit | d229174bed1887d95f37c7aa24b98389b40bd670 (patch) | |
tree | 73f81a1947585aafc2b26acdf5cc90d918c5c562 /server.js | |
parent | everything seems to be working now (diff) | |
download | blog-d229174bed1887d95f37c7aa24b98389b40bd670.tar.gz blog-d229174bed1887d95f37c7aa24b98389b40bd670.zip |
added caching
Diffstat (limited to 'server.js')
-rwxr-xr-x | server.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -32,6 +32,7 @@ app.get("/$", (req, res) => { ); readStream.on("data", (chunk) => { res.render("index", { + cache: true, data: { blogHttp: mit.render(chunk), mds: fs.readdirSync(path.join(__dirname, "mds"), "utf-8"), @@ -51,6 +52,7 @@ app.get("/mds/:mdname$", (req, res) => { ); readStream.on("data", (chunk) => { res.render("index", { + cache: true, data: { blogHttp: mit.render(chunk), mds: fs.readdirSync(path.join(__dirname, "mds"), "utf-8"), |