header('Etag: '.$_SERVER['HTTP_IF_NONE_MATCH']);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (31536000)) . " GMT");
header("Cache-Control: max-age=31536000");
header('Etag: '.$_SERVER['HTTP_IF_NONE_MATCH']);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + (31536000)) . " GMT");
header("Cache-Control: max-age=31536000");
header_remove('Last-Modified');
header_remove('Expires');
header_remove('Cache-Control');
header_remove('Last-Modified');
header_remove('Expires');
header_remove('Cache-Control');
$resolution = intval(substr($photo,-1,1));
$photo = substr($photo,0,-2);
}
$resolution = intval(substr($photo,-1,1));
$photo = substr($photo,0,-2);
}
// Resize only if its not a GIF
if ($mime != "image/gif") {
$ph = new Photo($data, $mimetype);
// Resize only if its not a GIF
if ($mime != "image/gif") {
$ph = new Photo($data, $mimetype);
// it is a private photo that they have no permission to view.
// tell the browser not to cache it, in case they authenticate
// it is a private photo that they have no permission to view.
// tell the browser not to cache it, in case they authenticate