laravel-http2-server-push
laravel-http2-server-push copied to clipboard
Update HttpPush.php to handle mix.version()
When using mix.version(), getTypeByExtension() does not take into account the query string on the url and improperly marks all versioned assets as image. To fix, split $resourcePath by ? to give us a clean, non-versioned asset url, which we can then split by . to get the correct file extension.
The TravisCI phpunit tests fail due to Orchestra\Testbench in PHP 7.2 and 7.3. Otherwise, everything works normally in Laravel.