aboutsummaryrefslogtreecommitdiffstats
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rwxr-xr-xserver.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.js b/server.js
index 86681e9..8ebab87 100755
--- a/server.js
+++ b/server.js
@@ -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"),