Note that there are some explanatory texts on larger screens.

plurals
  1. POGzip not working on local development
    primarykey
    data
    text
    <p>I am using a Kohana minifier module to compress less/ css and js files into type combined files.</p> <p><code>/less/f31e419e939bfec51b4fe8322f545455.less?r=20130618</code> <code>/js/24dae189814109f20ff9a5bf4422be36.js?r=20130618</code></p> <p>I am using MAMP PRO but receive the following error on Firefox and Chrome:</p> <pre><code>Content Encoding Error This webpage is not available </code></pre> <p>The content headers are coming through as:</p> <pre><code>HTTP/1.1 200 OK Date: Tue, 18 Jun 2013 11:17:14 GMT Server: Apache X-Powered-By: PHP/5.4.4 Etag: "acf11d952c07adb223fa77f3d385f56e" Cache-Control: must-revalidate Last-Modified: Thu, 13 Jun 2013 21:57:04 +0000 Content-Encoding: gzip Content-Length: 16894 Set-Cookie: session_database=ecfc139402165669a4b6d5e8190564231133fb0d%7E51c041ba9f6e95-28008580; expires=Wed, 19-Jun-2013 11:17:17 GMT; path=/ Content-Type: text/css; charset=utf-8 </code></pre> <p>The content works if I remove the gzip encoding but obviously I would like to take advantage of the gzip compression. My PHP code is:</p> <pre><code>// Further up the page $data['cache_gz'] = gzencode($data['cache']); //... if ($gzip === FALSE){ $this-&gt;response-&gt;body($data['cache']); // Works }else{ this-&gt;response-&gt;headers('Content-Encoding', $gzip); // Doesn't Work $this-&gt;response-&gt;headers('Content-Length', strlen($data['cache_gz'])); $this-&gt;response-&gt;body($data['cache_gz']); } </code></pre> <p>Would really appreciate some guidance with this as I am stumped as to how to solve this issue or if it is just related to being on a local server.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload