diff --git a/vendor/magento/module-customer/view/frontend/web/js/customer-data.js b/vendor/magento/module-customer/view/frontend/web/js/customer-data.js
index ab32a6d31ed90..1260c3d5ce232 100644
--- a/vendor/magento/module-customer/view/frontend/web/js/customer-data.js
+++ b/vendor/magento/module-customer/view/frontend/web/js/customer-data.js
@@ -109,12 +109,19 @@ define([
      * @return {*}
      */
     ko.extenders.disposableCustomerData = function (target, sectionName) {
-        var sectionDataIds, newSectionDataIds = {};
-
         target.subscribe(function () {
+            var sectionDataIdsAtSchedule = $.cookieStorage.get('section_data_ids') || {},
+                dataIdAtSchedule = sectionDataIdsAtSchedule[sectionName];
+
             setTimeout(function () {
+                var sectionDataIds = $.cookieStorage.get('section_data_ids') || {},
+                    newSectionDataIds = {};
+
+                if (sectionDataIds[sectionName] !== dataIdAtSchedule) {
+                    return;
+                }
+
                 storage.remove(sectionName);
-                sectionDataIds = $.cookieStorage.get('section_data_ids') || {};
                 _.each(sectionDataIds, function (data, name) {
                     if (name !== sectionName) {
                         newSectionDataIds[name] = data;
@@ -204,21 +211,17 @@ define([
          * Customer data initialization
          */
         init: function () {
-            var expiredSectionNames = this.getExpiredSectionNames();
+            var expiredSectionNames = this.getExpiredSectionNames(),
+                sectionsToReload;
 
-            if (expiredSectionNames.length > 0) {
-                _.each(dataProvider.getFromStorage(storage.keys()), function (sectionData, sectionName) {
-                    buffer.notify(sectionName, sectionData);
-                });
-                this.reload(expiredSectionNames, false);
-            } else {
-                _.each(dataProvider.getFromStorage(storage.keys()), function (sectionData, sectionName) {
-                    buffer.notify(sectionName, sectionData);
-                });
+            _.each(dataProvider.getFromStorage(storage.keys()), function (sectionData, sectionName) {
+                buffer.notify(sectionName, sectionData);
+            });
 
-                if (!_.isEmpty(storageInvalidation.keys())) {
-                    this.reload(storageInvalidation.keys(), false);
-                }
+            sectionsToReload = _.uniq(expiredSectionNames.concat(storageInvalidation.keys()));
+
+            if (sectionsToReload.length > 0) {
+                this.reload(sectionsToReload, false);
             }
 
             if (!_.isEmpty($.cookieStorage.get('section_data_clean'))) {
diff --git a/vendor/magento/module-theme/view/frontend/web/js/view/messages.js b/vendor/magento/module-theme/view/frontend/web/js/view/messages.js
index 9b9c4c6f0288e..fb6fc9a2916c1 100644
--- a/vendor/magento/module-theme/view/frontend/web/js/view/messages.js
+++ b/vendor/magento/module-theme/view/frontend/web/js/view/messages.js
@@ -60,9 +60,7 @@ define([
             return escaper.escapeHtml(message, this.allowedTags);
         },
         purgeMessages: function () {
-            if (!_.isEmpty(this.messages().messages)) {
-                customerData.set('messages', {});
-            }
+            customerData.set('messages', {});
         }
     });
 });
