tag:blogger.com,1999:blog-8729407087018325447.post2382919849078161122..comments2024-03-06T14:41:16.291-05:00Comments on Kirk's UI Dev Blog: trivial "excel download" in phpKirk Ishttp://www.blogger.com/profile/15605658292036699663noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8729407087018325447.post-56729686079856698202015-05-20T16:27:10.411-04:002015-05-20T16:27:10.411-04:00Just FYI, using this exact same technique, we'...Just FYI, using this exact same technique, we've had issues with a few oddball versions/configurations of IE failing to properly download and open the attachment if you don't let it cache the attachment. Assuming a filename that's autogenerated based on a timestamp, we add something like the following, which helps IE not be stupid:<br /><br /> $expire = date("D, m M Y H:i:s", $pickAnExpirationDate);<br /> header("Expires: $expire GMT");<br /> header("Cache-Control: ");<br /> header("Pragma: ");Nathanhttps://www.blogger.com/profile/02763963217187530121noreply@blogger.com