Thread:Project:Support desk/http content negotiation

Hello, I have heard that wikipedia uses http content negotiation to serve svg images when supported and png / other files if not.

For a long time, I have been relentlessly trying to re-create this code in PHP, but it keeps on failing. Meaning, my code makes sense, but browsers that I know support SVG do not accept the svg image (act as if they don't)

So I figured that since media-wiki powers wikipedia, I was hoping someone here could help me understand and know the syntax that Wikipedia uses for content negotiation (serving svg when supported or other file-types otherwise) successfully.

I would really appreciate it if someone here could help me with this or point me in the direction of someone how can.

Thanks in Advance & Best Regards :-)