如何禁用laravel中的文件URL的gzip

在Android客户端,我们使用这个下载器库 ,它是伟大的库,但它需要文件的大小,然后从URL下载文件。

根据一些需要,我们应该为我们的代码(Laravel)启用gzip

但是我们不能启用gzip因为在那之后下载器不起作用并且引发错误。

现在我们要禁用文件URL的gzip

这是我的.htaccess内容:

 SetEnv no-gzip dont-vary <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>