Fullscreen
Loading...
 
[Show/Hide Right Column]

Compression


Tiki-generated pages can be compressed by Tiki's internal mechanism ($feature_obzip) or via PHP's zlib compression. "The zlib extension offers the option to transparently compress your pages on-the-fly, if the requesting browser supports this."

These two methods conflict, therefore Tiki compression will only be active if zlib is unavailable.

If you are getting blank pages or weird error messages, try disabling this feature. Please report any bugs.

On some servers, this feature conflicts with short URLS (via htaccess) (not sure how or why)

In TikiWiki, see "Use gzipped output:" on tiki-admin.php?page=general

As a note, this will compress output coming from php files, not css or js (which are actually static content), for these you could use deflate module (in Apache), and add mime types for .js and .css files, something like this:

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/javascript text/css

In Debian, you find this file in /etc/apache2/mods-enabled/deflate.conf , and you just need to edit the file to suit your needs. This reduced the amount of data served for my tiki home page from ~800kB to ~200kB!

Related

Contributors to this page: xavi67871 points  , soulhunter32 points  , E.W. Peter Jalajas310 points  and Marc Laporte9137 points  .
Page last modified on Thursday 03 February, 2011 11:08:00 UTC by xavi67871 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki