[whatwg] How to improve the appearance of web pages

Gervase Markham gerv at mozilla.org
Tue Mar 13 06:35:05 PDT 2007

Behnam ZWNJ Esfahbod wrote:
> The second one is to get the web server decide which image file is
> better.  An Apache httpd module can select the best response for a
> request for image "the-company-logo" if it knows which size is needed,
> and what mime-types are acceptable.
> My idea is to add a field to the http request header for image files,
> to let the server know which size the image is going to be shown, and
> then it decides to send the best answer. 

What's wrong with URL parameters?

<img src="logo.jpg?width=100px&height=100px" width="100" height="100">

Your server-side code could see this URL and serve an appropriate image.


More information about the whatwg mailing list