stechstudio/laravel-zipstream

The package gets http file headers anyway even when filesize prediction is disabled

Closed this issue · 0 comments

Hi,

In Zipstream.php file, the canPredictZipSize() method tries to find out if it is possible to predict the files' size before checking config('zipstream.archive.predict'),
So it gets the http file headers anyway which makes the response a couple seconds slower.

public function canPredictZipSize()
{
    return $this->queue->every->canPredictZipDataSize()
        && config('zipstream.archive.predict');
}