Unsupported way to save bandwidth with roster

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Unsupported way to save bandwidth with roster

Postby zeryl » Mon Jan 01, 2007 1:35 pm

This is 100% unsupported by the roster admins. Please do not come to IRC asking for help if this does not work.


In your roster directory, create two files

.htaccess
Code: Select all
php_value auto_prepend_file <filesystem path to roster>/head.php


head.php
Code: Select all
<?php

ob_start("ob_gzhandler");

?>


This turns on compression for the roster, which took the html portion of my roster from 350kb, down to 19kb. This doesn't work on images, but it's a HUGE change in file size. It may not make load time any faster, but it will definetly use less bandwidth.


PLEASE NOTE:

There should NOT be any spaces before the <?php or after the ?>
Last edited by zeryl on Mon Jan 01, 2007 1:44 pm, edited 2 times in total.
User avatar
zeryl
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 194
Joined: Tue Jul 04, 2006 12:59 pm
Location: Saint Louis

Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

cron