From d9a698d4c54b0d9c39dc4525ffab5f657e357d24 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sun, 16 Jul 2023 11:22:46 +0530 Subject: [PATCH] fix: lower rapid-reload threshold --- frappe/public/js/frappe/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/assets.js b/frappe/public/js/frappe/assets.js index dcb945bacd..6d85dd019e 100644 --- a/frappe/public/js/frappe/assets.js +++ b/frappe/public/js/frappe/assets.js @@ -32,7 +32,7 @@ frappe.assets = { // Evict cache every 2 days // Evict cache if page is reloaded within 10 seconds. Which could be user trying to // refresh if things feel broken. - if ((not_updated_since < 10000 && is_reload()) || not_updated_since > 2 * 86400000) { + if ((not_updated_since < 5000 && is_reload()) || not_updated_since > 2 * 86400000) { frappe.assets.clear_local_storage(); } } else {