laravel-http2-server-push icon indicating copy to clipboard operation
laravel-http2-server-push copied to clipboard

Update HttpPush.php to handle mix.version()

Open AJMaxwell opened this issue 6 years ago • 1 comments

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.

AJMaxwell avatar Mar 22 '19 23:03 AJMaxwell

The TravisCI phpunit tests fail due to Orchestra\Testbench in PHP 7.2 and 7.3. Otherwise, everything works normally in Laravel.

AJMaxwell avatar Mar 26 '19 15:03 AJMaxwell