aboutsummaryrefslogtreecommitdiffstats
path: root/cache.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2018-03-20 17:03:46 +0000
committerAdam Soltys <[email protected]>2018-03-20 17:03:46 +0000
commit27cba8e4b054b6dde5b399e201d52b77b11a9a8a (patch)
tree19e5c2ab5f636a43e7d1e315d328b1f7bfde1f35 /cache.js
parentaca2da56939d6168bf8e02a9d112951abc3da927 (diff)
downloadcoinos-server-27cba8e4b054b6dde5b399e201d52b77b11a9a8a.tar.gz
coinos-server-27cba8e4b054b6dde5b399e201d52b77b11a9a8a.zip
refactor config
Diffstat (limited to 'cache.js')
-rw-r--r--cache.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/cache.js b/cache.js
deleted file mode 100644
index 645fd610..00000000
--- a/cache.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = (req, res, next) => {
- if (req.path !== '/login') {
- res.setHeader("Cache-Control", "public, max-age=900")
- }
- return next()
-}