Client side optimization Nov 13, 2009 / Updated: May 17, 2015
As per yahoo! optimization guidelines http://developer.yahoo.com/yslow/ for
making Zenphoto faster at client-side, here are some hacks.
FIRST: Edit .htaccsss file and add the following lines.
<ifmodule mod_expires.c><filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresDefault "access plus 1 year"
SECOND: If your web server is supporting gzip compression, edit index.php and add following line at Top of the page.
header("Vary: Accept-Encoding");if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
So, Web server will deliver entire webpage as gzip compression
format to the browser. So, network bandwidth can be reduced.
$gd = "Expires: Monday, January 18, 2038 12:44:06 AM";
<?phpif (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
header("Content-type: text/css; charset: UTF-8");
$gd = "Expires: Sun, 1 Jan 2017 05:00:00 GMT";
<link rel="stylesheet" href="/themes/sterile/zen.css.php"></link>
You can check the performance of the site http://actress.bollysite.com and test It with Firefox firebug-Yslow plug-in.
Please note: This extension or tool has been abandoned either by the Zenphoto team or its original 3rd party developer but we provide it for archival purposes on our "unsuppported" GitHub repository "as is". We generally do not update these extensions (See the circle icon about the status).
It is not possible to download individual extensions from the GitHub repository. You have to download the full repository (click on "Download ZIP") and sort out what you need yourself.