On 6 May 2014 16:39, Makailol Charls <makailol7@gmail.com> wrote:
> Is it necessary to have an extension to image file to set proper
> content-type for Nginx? Couldn't web server set the content-type from *file
> type* ?
>
That would require Nginx to inspect the file contents and make a guess as
to what file type it is. I don't know if it could do that.
You could try just using:
add_header Content-Type image/jpeg;
And hope that the user's web browser will automatically work out the
correct Content-Type, if the image was actually a PNG or something.
Cheers,
Nicholas Sherlock
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx