client link noTimestamp

This commit is contained in:
yuri
2019-05-20 14:00:50 +03:00
parent e7f62f79ef
commit cb45e57a99
2 changed files with 8 additions and 3 deletions
@@ -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'] ?? '';
@@ -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
}
]
}