swag

L'autista
Administrator
Sep 23, 2003
84,956
Good morning, all.

Dude, i'm more excited about this than you are! :weee:
We have a competition then. :D

So one of our sales ppl called in sick today & guess who ran into him, holding hands with his flooze gf? I guess he was aching to get caught.
Oooh. Sounds like someone has gained extortion points at the office. :weee:

you moved to france?
:lol:

Oh so tragic and oh so true. (I know this, having sat through a day of meetings in my former company's Paris office once.)

Just received word I rocked my last exam! :weee: That was my final bachelor test, now all there is left is the final lab assignment. Get innnnnnnn!
Congrats, Ken!

Bachelor test? Lab assignment? Get in?

Are there tranny hookers involved here? (Sorry, I have to ask.)

Just had some noodles in honor of the Great Flying Spaghetti Monster.
I recognized your new av right away.

Two Weeks, what is it in? Post-Structuralist feminism and it's relation to Celtic Revivalism?
Pffft. If you're going to make up confusing fields of study where you can readily be considered the de facto expert, why not Post-Industrial Cambodian Feminist Cryptography?
 

swag

L'autista
Administrator
Sep 23, 2003
84,956
Greg, let's talk shop. I learned about the X-Sendfile header in apache today, you know it? It's goooood.
That's mainly about downloading files (with file resume, etc.) bypassing the usual HTTP processing and leveraging local memory caching, etc., via the web server, yeah?
 

Martin

Senior Member
Dec 31, 2000
56,913
That's mainly about downloading files (with file resume, etc.) bypassing the usual HTTP processing and leveraging local memory caching, etc., via the web server, yeah?
Static downloads are optimal, needless to say. But if you need an indirect via your webapp layer to do auth you can basically do get_file.php?file=veryprivate.txt, check the cookie, and if it's good you propagate X-Sendfile: veryprivate.txt to apache which will then serve the file as if it were a static download, with ranges that allows resume and all the rest. It's very neat.
 

swag

L'autista
Administrator
Sep 23, 2003
84,956
Static downloads are optimal, needless to say. But if you need an indirect via your webapp layer to do auth you can basically do get_file.php?file=veryprivate.txt, check the cookie, and if it's good you propagate X-Sendfile: veryprivate.txt to apache which will then serve the file as if it were a static download, with ranges that allows resume and all the rest. It's very neat.
Cool. So you get a lot of efficiency even in the authenticated case. :tup:
 

Martin

Senior Member
Dec 31, 2000
56,913
Cool. So you get a lot of efficiency even in the authenticated case. :tup:
Yeah, except it pretty much forces you to keep the files on the same box as the webapp, which is less yummy. I haven't figured out what to do about that yet. I suppose you could spin up an instance of the app on a box that only does file serving and auth, which would be an improvement on the general case. But it's not a really clean solution.
 

Users Who Are Viewing This Thread (Users: 5, Guests: 224)