diff --git a/config-overrides.js b/config-overrides.js index 3917f336ef..27160f857c 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -108,6 +108,20 @@ module.exports = function override(config, env) { caches: process.env.NODE_ENV === 'development' ? {} : 'all', externals, autoUpdate: true, + cacheMaps: [ + { + match: function(url) { + var EXTERNAL_PATHS = ['/api', '/auth']; + if ( + EXTERNAL_PATHS.some(function(path) { + return url.pathname.indexOf(path) === 0; + }) + ) + return false; + return url; + }, + }, + ], rewrites: arg => arg, ServiceWorker: { entry: './public/push-sw.js', diff --git a/package.json b/package.json index 0dbce1b37e..9e93393446 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Spectrum", - "version": "2.4.11", + "version": "2.4.12", "license": "BSD-3-Clause", "devDependencies": { "babel-cli": "^6.24.1",