CIRCULATEQR

QR code glossary · Dynamic codes and tracking

Redirect

Also called: HTTP redirect, URL redirect

Definition

A redirect is an HTTP response with a 3xx status code and a Location header that tells the browser to load a different address; it is how a dynamic QR code’s short link forwards each scan to the code’s current destination.

How it works

When a phone opens a short link, the server answers with a status code and the address to go to next. The browser follows it immediately, usually in a fraction of a second. HTTP defines several redirect codes; RFC 9110 sets out what each means:

HTTP redirect status codes (RFC 9110, section 15.4)
CodeMeaningPermanent?Request method
301Moved PermanentlyYesMay change from POST to GET
302FoundNoMay change from POST to GET
303See OtherNoBecomes GET
307Temporary RedirectNoKept
308Permanent RedirectYesKept

A scan always makes a plain GET request, so for QR codes the method rules make no difference, and 302 and 307 behave the same. The difference that matters is permanence. Under the HTTP standard, 301 and 308 responses can be cached by default, so a browser may remember them and skip the redirect service next time. Temporary redirects are not cached unless the server says so.

Why it matters

A dynamic QR code should use a temporary redirect, 302 or 307. Then every scan reaches the service, so an edited destination takes effect for everyone and every scan can be counted. With a cached 301, a phone that scanned before may go straight to the old destination, and its repeat scans go uncounted. A service can also send Cache-Control: no-store as an extra guard.

Permanent redirects also signal to Google that the target address should replace the original in search results; temporary ones keep the original. That matters for moving web pages, rarely for QR short links. One practical tip: point a code at the final address of the page. Every extra hop, such as http to https or a missing www, adds a round trip, and some redirects drop query strings like UTM tags.

Example

GET /r/A7K2Q9 HTTP/1.1
Host: example.com

HTTP/1.1 302 Found
Location: https://example.com/spring-menu

In CirculateQR

CirculateQR’s short links answer scans with temporary redirects (302 Found for an ordinary link), so an edited destination applies from the very next scan.

Learn more

Sources

Last updated . Written by the CirculateQR team; technical facts follow the sources listed above. Example codes and sizes are computed with the open-source qrcode encoder that CirculateQR uses. Spotted something wrong? Email support@circulateqr.com. QR Code is a registered trademark of DENSO WAVE INCORPORATED.

← Browse the full glossary