client link noTimestamp
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user