mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-06-30 23:05:29 +00:00
Add option to force disable gzip for css.
This commit is contained in:
parent
62454cb43f
commit
155b7390a9
@ -28,6 +28,8 @@
|
||||
|
||||
const MEMORY_FOR_PACKING = 67108864; // 64Mb
|
||||
|
||||
const FORCE_DISABLE_GZIP = false;
|
||||
|
||||
private $addrJsCacheFileInfo;
|
||||
private $addrJsCacheFile;
|
||||
private $addrCssCacheFileInfo;
|
||||
@ -531,6 +533,11 @@
|
||||
|
||||
private function CanUseGZIP()
|
||||
{
|
||||
if (self::FORCE_DISABLE_GZIP)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$httpAcceptEncoding = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : '';
|
||||
$hasGzip = strstr($httpAcceptEncoding, 'gzip') !== false && extension_loaded('zlib');
|
||||
$canEncoding = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user