Try adding
 self.response.headers['Cache-Control'] = "max-age=600"

There is a bug in IE, when it thinks it cant cache a file, it doesnt
even cache it long enough for the download to complete. So you have to
tell it can cache the file for long enough.

On 25/09/2009, dingle <[email protected]> wrote:
>
>  Not works yet.
>  I am frustrated and don't knwo why GAE does not support so simple
>  request.
>
>  Anyone can test http://faguangrfi.appspot.com/d.txt in your side. Will
>  same error happened?
>
>  The follwoing is http pachage content. I will quite appreciate your
>  idea...
>
>
>  In my localhost which download succesfully:
>  ------------------sent--------------------------------
>  GET /d.txt HTTP/1.1
>  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  application/x-shockwave-flash, application/vnd.ms-excel, application/
>  vnd.ms-powerpoint, application/msword, application/x-silverlight,
>  application/x-ms-application, application/x-ms-xbap, application/
>  vnd.ms-xpsdocument, application/xaml+xml, */*
>  Accept-Language: en-us
>  Accept-Encoding: gzip, deflate
>  User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
>  Maxthon; CIBA; .NET CLR 1.1.4322; LTWG 1.0; .NET CLR 2.0.50727; .NET
>  CLR 3.0.4506.2152; .NET CLR 3.5.30729)
>  Host: localhost:8080
>  Connection: Keep-Alive
>  Cookie: pysid=23054326a9522056b3d25777d0d8133c
>
>  ---------------------recieved----------------------------------
>  HTTP/1.0 200 OK
>  Server: Development/1.0
>  Date: Fri, 25 Sep 2009 08:57:18 GMT
>  Cache-Control: no-cache
>
> Content-Type: application/x-download
>
> Content-Disposition: attachment;filename=d.txt
>
> Expires: Fri, 01 Jan 1990 00:00:00 GMT
>  Content-Length: 4
>
>  abcd
>
>  ################################################################
>
>  In faguangrfi.appspot.com whick download failed.
>  ------------------
>  sent--------------------------------------------------------
>  GET /d.txt HTTP/1.1
>  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>  application/x-shockwave-flash, application/vnd.ms-excel, application/
>  vnd.ms-powerpoint, application/msword, application/x-silverlight,
>  application/x-ms-application, application/x-ms-xbap, application/
>  vnd.ms-xpsdocument, application/xaml+xml, */*
>  Accept-Language: en-us
>  Accept-Encoding: gzip, deflate
>  User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
>  Maxthon; CIBA; .NET CLR 1.1.4322; LTWG 1.0; .NET CLR 2.0.50727; .NET
>  CLR 3.0.4506.2152; .NET CLR 3.5.30729)
>  Host: faguangrfi.appspot.com
>  Connection: Keep-Alive
>
>  -----------------------
>  recieved----------------------------------------------------
>  HTTP/1.1 200 OK
>  Cache-Control: no-cache
>
> Content-Type: application/x-download
>
> Content-Disposition: attachment;filename=d.txt
>
> Expires: Fri, 01 Jan 1990 00:00:00 GMT
>  Date: Fri, 25 Sep 2009 09:03:16 GMT
>  Server: Google Frontend
>  Content-Length: 4
>  Connection: Keep-Alive
>
>  abcd
>
>
>
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to