Device-Memory
Adaptive content delivery requires knowing the client device's capabilities. The HTTP Device-Memory request header is a client hint reporting the approximate amount of RAM on the device in gigabytes.
Usage
The Device-Memory header is part of the Device Memory
API. Servers opt in to receive this header by sending the
Accept-CH response header with
Device-Memory listed as an accepted hint. The browser then
includes the header in subsequent requests over a secure
(HTTPS) connection.
Servers use the reported memory to tailor responses. A device with limited RAM benefits from lighter page weights, fewer JavaScript bundles, and smaller image assets. A device with ample memory receives richer experiences without performance concerns.
The value is not the exact installed RAM. Browsers round the
figure down to a short ladder of predefined values, clamped
at platform-specific floors and ceilings, to reduce
fingerprinting exposure. A desktop with 12 GB of physical
RAM reports 8 because the browser rounds down to the
nearest value in the ladder.
Combining Device-Memory with Save-Data and network hints like Downlink and ECT gives servers a fuller picture of the client environment for adaptive content delivery.
The current Device Memory specification defines the
Sec-CH-Device-Memory hint name. Device-Memory is
the legacy form kept by Chromium for compatibility, and
Chromium-based browsers send both headers when the
server opts in to both through Accept-CH.
Values
Reported values depend on the browser version and
platform. Current Chrome reports 2, 4, 8, 16, or
32 on desktop and 1, 2, 4, or 8 on Android.
Earlier Chrome versions reported 0.25, 0.5, 1,
2, 4, or 8 on all platforms.
1
The device has approximately 1 GB of RAM. The floor value on Android, covering low-end hardware where aggressive resource reduction applies.
2
The device has approximately 2 GB of RAM. Common on budget mobile devices, and the floor value on desktop.
4
The device has approximately 4 GB of RAM. Common on mid-range mobile devices.
8
The device has approximately 8 GB of RAM. The ceiling
value on Android, so higher-memory Android devices
report 8.
16
The device has approximately 16 GB of RAM. Common on desktop hardware.
32
The device has 32 GB or more of RAM. The ceiling value on desktop.
Example
A mobile device with 2 GB of RAM sends the following request header after the server opts in through Accept-CH.
Device-Memory: 2
A low-memory Android device reports 1 GB. The server responds with a lightweight version of the page, reducing image resolution and deferring non-essential scripts.
Device-Memory: 1
The server opt-in response looks like this.
Accept-CH: Device-Memory
SEO
Search crawlers do not send client hints. Serve a complete baseline experience that does not depend on this header for content adaptation.