Mercurial > SimpleWebPresenter
diff Page.inc @ 111:adf7b11921f4
No compression when debugging.
Synchronize caching headers.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 15 Mar 2016 12:55:42 +0100 |
| parents | 0a33803ee026 |
| children | df158368051e |
line wrap: on
line diff
--- a/Page.inc Tue Mar 08 00:43:48 2016 +0100 +++ b/Page.inc Tue Mar 15 12:55:42 2016 +0100 @@ -110,6 +110,8 @@ */ function mayCompress() { + if (COMPRESSION_DISABLED) + return false; //We want to add the variant even if we don't serve with compression. $this->addVariant('Accept-Encoding'); if (!array_key_exists('HTTP_ACCEPT_ENCODING', $_SERVER))
