Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pavel_lishin
on May 8, 2012
|
parent
|
context
|
favorite
| on:
Application Cache Is A Douchebag
Because then I'd have to open an image in PHP just to output it right back out. More work than just having Apache serve it.
cstejerean
on May 8, 2012
[–]
You can use X-SendFile (or X-AccelRedirect) to have your PHP code tell Apache or Nginx which image to serve, without having to send a 302 to the browser.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: