From 9bf1fca157e269e17c2c64d897627f5520c34ecd Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 21 Sep 2016 12:03:40 -0700 Subject: [PATCH] Cachebusting on update urls --- app/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 8f0d886c6..4a7847a34 100644 --- a/app/main.js +++ b/app/main.js @@ -41,9 +41,10 @@ const { } = electron; const UPDATE_URLS = { - darwin: `https://updates.insomnia.rest/builds/check/mac?v=${appVersion}`, - win32: 'https://downloads.insomnia.rest/win', - linux: `https://updates.insomnia.rest/builds/check/linux?v=${appVersion}` + // Add `r` param to help cache bust + darwin: `https://updates.insomnia.rest/builds/check/mac?v=${appVersion}&r=${Date.now()}`, + linux: `https://updates.insomnia.rest/builds/check/linux?v=${appVersion}&r=${Date.now()}`, + win32: `https://downloads.insomnia.rest/win?r=${Date.now()}` }; const DOWNLOAD_URL = 'http://download.insomnia.rest';