def download(): """ allows downloading of uploaded files http://..../[app]/default/download/[filename] """ # Die IE! Die! Die! Die! # ( http://support.microsoft.com/kb/323308 ) response.headers['Pragma']="private" response.headers['Cache-Control']="private, must-revalidate" return response.download( request, db )
seems to work, tnx. On ápr. 7, 21:18, Timothy Farrell <tfarr...@swgen.com> wrote: > IE has a cache problem with HTTPS. I don't use the download function > but this would apply if the download function doesn't handle it. I have > this in my code in several places: > > # Die IE! Die! Die! Die! > # (http://support.microsoft.com/kb/323308) > response.headers['Pragma']="private" > response.headers['Cache-Control']="private, must-revalidate" > > Put that in before you call download(). Does that fix it? > > On 4/7/2010 10:03 AM, szimszon wrote: > > > > > I use 1.76.5 and mod_wsgi... But the question about ssl... hmmm... > > I'll try some trick with IE8 to accept the cert first :-D > > > I'll report back... > > > On pr. 7, 16:15, mdipierro<mdipie...@cs.depaul.edu> wrote: > > >> Are you using 1.76.5 or earlier and the built-in web server? that is > >> known to truncate large files over https. You should now have that > >> problem with the web2py in trunk which uses rocket or if you use > >> another web server. > > >> On Apr 7, 8:09 am, szimszon<szims...@gmail.com> wrote: > > >>> yes > > >>> On pr. 7, 14:50, Timothy Farrell<tfarr...@swgen.com> wrote: > > >>>> Are you on a HTTPS connection? > > >>>> On 4/7/2010 6:29 AM, szimszon wrote: > > >>>>> Hello, > > >>>>> I have an > >>>>> " > >>>>> Internet Explorer cannot > >>>>> download ...f783273687326762357523675236785237623786.pdf from some > >>>>> domain. > >>>>> Internet Explorer was not able to open this Internet site. The > >>>>> requested site is either unavailabla or cannot be found. Please try > >>>>> again later. > >>>>> " > > >>>>> With Chrome and FF it works. > > >>>>> The file is in database and I use the download() function... -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.