The package gets http file headers anyway even when filesize prediction is disabled
Closed this issue · 0 comments
m7moudabdel7mid commented
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');
}