﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty
4142	Etags for profile icondirect.php and groups icon.php	codelust	sembrestels	"icondirect.php does not output Etags. It only carries an expires header, which is good, but may not be enough. On the production site that I run, the ETags header has made a considerable improvement in page load times. You may want to explore adding ETags to icondirect.php.

Code I have changed:


header(""Content-type: image/jpeg"");
                                header('Expires: ' . date('r',time() + 864000));
                                header(""Pragma: public"");
                                header(""Cache-Control: public"");
                                header(""Content-Length: "" . strlen($contents));
                                $eTag = ""elgg-"".dechex(crc32($contents));
                                header(""ETag:$eTag"");
                                $splitString = str_split($contents, 1024);
                                foreach($splitString as $chunk) {
                                echo $chunk;
"	Enhancement	closed	normal	Elgg 1.8.3	Profile	1.8	minor	fixed		brett@…	
