From e4dccd7ea8b4d3f1ba214d0ab0acd9cbfac65310 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 19 Jun 2017 11:29:13 +0200 Subject: [PATCH 1/2] cache blobs for a year unless you're in dev mode --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 0db55f8d0..aed35c2fc 100644 --- a/server.js +++ b/server.js @@ -89,7 +89,9 @@ var mainPages = config.mainPages || ['index', 'privacy', 'terms', 'about', 'cont var mainPagePattern = new RegExp('^\/(' + mainPages.join('|') + ').html$'); app.get(mainPagePattern, Express.static(__dirname + '/customize.dist')); -app.use("/blob", Express.static(Path.join(__dirname, (config.blobPath || './blob')))); +app.use("/blob", Express.static(Path.join(__dirname, (config.blobPath || './blob')), { + maxAge: DEV_MODE? "0d": "365d" +})); app.use("/customize", Express.static(__dirname + '/customize')); app.use("/customize", Express.static(__dirname + '/customize.dist')); From 44b8bc7b7ddd9654054bf358215ffe7c55ff9d2a Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 19 Jun 2017 11:43:24 +0200 Subject: [PATCH 2/2] make context menus unselectable --- www/drive/inner.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/drive/inner.html b/www/drive/inner.html index dfd37b799..f35be196a 100644 --- a/www/drive/inner.html +++ b/www/drive/inner.html @@ -17,7 +17,7 @@
-