3 ms·
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.
by pavel_lishin 15y ago
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 15y agoYou 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.