phpBB

Code Changes

File: includes/functions_download.php

  Unmodified   Added   Modified   Removed
Line 196Line 196
	}

// Now the tricky part... let's dance

	}

// Now the tricky part... let's dance

	header('Cache-Control: public');

	header('Cache-Control: private');


// Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer.
header('Content-Type: ' . $attachment['mimetype']);


// Send out the Headers. Do not set Content-Disposition to inline please, it is a security measure for users using the Internet Explorer.
header('Content-Type: ' . $attachment['mimetype']);

Line 451Line 451
		{
send_status_line(304, 'Not Modified');
// seems that we need those too ... browsers

		{
send_status_line(304, 'Not Modified');
// seems that we need those too ... browsers

			header('Cache-Control: public');

			header('Cache-Control: private');

			header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
return true;
}

			header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
return true;
}