3 ms·
In an <img> context, your browser should send an appropriate Accept header[1]; this can be switched upon in the backend to select the appropriate representation
by lcampbell 13y ago
In an <img> context, your browser should send an appropriate Accept header[1]; this can be switched upon in the backend to select the appropriate representation (e.g., to serve an image rather than HTML). So hotlinked images should continue to work, while normal links will redirect to the HTML wrapper.
--
[1] Though, rather unfortunately, most browsers do not seem to send reasonable Accept headers. See https://developer.mozilla.org/en-US/docs/HTTP/Content_negotiation https://developer.mozilla.org/en-US/docs/HTTP/Content_negoti..., "Default Values" and "Values for an image".