aboutsummaryrefslogtreecommitdiffstats
path: root/cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'cache.js')
-rw-r--r--cache.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/cache.js b/cache.js
new file mode 100644
index 00000000..645fd610
--- /dev/null
+++ b/cache.js
@@ -0,0 +1,6 @@
+module.exports = (req, res, next) => {
+ if (req.path !== '/login') {
+ res.setHeader("Cache-Control", "public, max-age=900")
+ }
+ return next()
+}