From cb45e57a9939a8a14b5c745b037e0c9b8563ca38 Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 20 May 2019 14:00:50 +0300 Subject: [PATCH] client link noTimestamp --- application/Espo/Core/Utils/ClientManager.php | 5 ++++- application/Espo/Resources/metadata/app/client.json | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/Utils/ClientManager.php b/application/Espo/Core/Utils/ClientManager.php index 1015e50b0e..21bda8e938 100644 --- a/application/Espo/Core/Utils/ClientManager.php +++ b/application/Espo/Core/Utils/ClientManager.php @@ -125,7 +125,10 @@ class ClientManager $linksHtml = ''; foreach ($linkList as $item) { - $href = $this->basePath . $item['href'] . '?r=' . $cacheTimestamp; + $href = $this->basePath . $item['href']; + if (empty($item['noTimestamp'])) { + $href .= '?r=' . $cacheTimestamp; + } $as = $item['as'] ?? ''; $rel = $item['rel'] ?? ''; $type = $item['type'] ?? ''; diff --git a/application/Espo/Resources/metadata/app/client.json b/application/Espo/Resources/metadata/app/client.json index 18b2cb8789..82798d455f 100644 --- a/application/Espo/Resources/metadata/app/client.json +++ b/application/Espo/Resources/metadata/app/client.json @@ -30,13 +30,15 @@ "href": "client/fonts/open-sans/OpenSans-Bold.ttf", "as": "font", "type": "font/ttf", - "rel": "preload" + "rel": "preload", + "noTimestamp": true }, { "href": "client/fonts/open-sans/OpenSans-Regular.ttf", "as": "font", "type": "font/ttf", - "rel": "preload" + "rel": "preload", + "noTimestamp": true } ] }