From dc0091326156aaeda566151b65fe8d49097750b9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Oct 2016 12:28:32 +0200 Subject: Client: avoid "quit friends" to appear during the pending request --- server/initializers/constants.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server') diff --git a/server/initializers/constants.js b/server/initializers/constants.js index f77c4948f..8a8d5c1ce 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -128,6 +128,9 @@ const STATIC_PATHS = { WEBSEED: '/static/webseed/' } +// Cache control +let STATIC_MAX_AGE = '30d' + // Videos thumbnail size const THUMBNAILS_SIZE = '200x110' @@ -143,6 +146,7 @@ if (isTestInstance() === true) { CONSTRAINTS_FIELDS.VIDEOS.DURATION.max = 14 FRIEND_SCORE.BASE = 20 REQUESTS_INTERVAL = 10000 + STATIC_MAX_AGE = 0 } // --------------------------------------------------------------------------- @@ -164,6 +168,7 @@ module.exports = { RETRY_REQUESTS, SEARCHABLE_COLUMNS, SORTABLE_COLUMNS, + STATIC_MAX_AGE, STATIC_PATHS, THUMBNAILS_SIZE, USER_ROLES -- cgit v1.2.3