Gumlet has support for Client Hints out of the box. If you configure your webpage to pass client hints for images, Gumlet server will automatically send resized images. Here are the client hint headers that we support.




The HTML page must also have Client-Hints enabled, which can be accomplished using either HTML or HTTP. To enable Client-Hints via HTML, add the following line in the <head> of your page, before any <link>, <style>, or <script> elements:

<meta http-equiv="delegate-ch" content="sec-ch-width; sec-ch-dpr; sec-ch-viewport-width;">

Alternatively, to enable Client-Hints via HTTP, add the following headers to your HTML document's response:

Permissions-Policy: ch-dpr=(""), ch-width=(""), ch-viewport-width=(""")
Accept-CH: Sec-CH-DPR, Sec-CH-Width, Sec-CH-Viewport-Width


Things to note!

  • Please, replace in the snippets above with the origin of your image URLs.

  • Browsers will only attach client hints to requests for URLs that use the HTTPS protocol.

  • In order to send the Sec-CH-Width hint, which is required for Gumlet's automatic image width feature, the <img> element must have a sizes attribute.

  • Client hints are only supported in Chromium-based browsers.