diff --git a/src/HttpPush.php b/src/HttpPush.php index 73dda41..f8d5792 100644 --- a/src/HttpPush.php +++ b/src/HttpPush.php @@ -69,7 +69,7 @@ public function clear() */ public static function getTypeByExtension(string $resourcePath) : string { - $parts = explode('.', $resourcePath); + $parts = explode('.', explode('?', $resourcePath)[0]); $extension = end($parts); switch ($extension) { case 'css': return 'style';