Nov 01, 2014; 17:28
Jolle Carlestam
What's up with Chrome and pdf downloads
When I have Lasso produce and serve a pdf I get the following error in Chromes console:
Resource interpreted as Document but transferred with MIME type application/pdf
The pdf is downloaded and viewable as expected so nothing is actually broken. The error warning just makes me nervous.
This is the code to serve the pdf:
web_response -> sendfile(#pdf -> asbytes, =92filename.pdf=92)
And application/pdf is, ASFAIK, the correct MIME type for pdfs.
This is Lasso 9.2.7 served from Centos 6 and viewed on Mavericks.
HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Nov 01, 2014; 21:18
Bil Corry
Re: What's up with Chrome and pdf downloads