basics

URL Resolution, DNS Lifecycles, and Redirect Semantics: Why a Static QR Pattern Outlives Its Destination

The honest answer: the code itself never expires, but the destination can. How to tell which kind you have, and how to make codes that outlive your business.

Updated September 2026

This is one of the most common questions, and the answer depends on what kind of code you have. The QR pattern itself does not have an expiry date — but the thing it links to might.

Static codes: never expire

A static QR code stores its data inside the image. Once generated, that pattern will always decode to the same text or URL. It does not depend on any service, so it cannot "expire". The only way it stops working is if the destination itself goes away — a deleted page, a cancelled domain, a removed file.

Dynamic codes: can expire

A dynamic QR code stores a short link that redirects through a service. If that service shuts down, changes its terms, or you stop paying the subscription, the code stops working — even though the printed pattern is unchanged. This is the main way a QR code "expires".

ScenarioDoes the code expire?
Static code → permanent URLNo
Static code → deleted pageThe code works, but the link is dead
Dynamic code → active subscriptionNo (while you pay)
Dynamic code → cancelled serviceYes
Wi-Fi code → password changedThe code works, but the password is wrong

How to check a code you already printed

  1. 1Decode the code with a decoder tool and read the raw text it contains.
  2. 2If the text is your full final URL, the code is static — it will keep working as long as that page exists.
  3. 3If the text is a short link on a third-party domain, the code is dynamic — its lifetime is tied to that service's lifetime.
  4. 4Open the decoded URL and confirm it still reaches the right destination.
  5. 5For Wi-Fi codes, join the network with the embedded password to confirm it still matches.

Making codes that outlive everything

  • •Point every printed code at a URL on a domain you own and plan to keep — not a provider's subdomain.
  • •Keep the URL stable and change the content behind it, never the address itself.
  • •If you migrate platforms, leave a redirect at the old URL rather than reprinting everything.
  • •For Wi-Fi codes, prefer a guest network whose password you rarely rotate — or accept that a rotation means reprinting the card.
  • •Keep a simple record of which printed codes point where, so a future redirect rescue is possible in minutes.

Auditing codes you printed years ago

A code printed three years ago and forgotten is a liability. The pattern still scans perfectly — that is the nature of static — but the destination may have moved, the page may have been deleted, or the domain may have lapsed. A customer who scans a dead code lands on a 404 or, worse, on a parked domain full of ads, and blames your business. A short annual audit prevents this.

  1. 1List every URL you have ever printed on a code — keep this register when you generate each new code.
  2. 2Open each URL once a year and confirm it still reaches the intended page.
  3. 3For codes pointing at files (a menu PDF, a vCard), confirm the file still exists and is the current version.
  4. 4If a destination has moved, set up a redirect at the old URL rather than reprinting.
  5. 5For Wi-Fi codes, confirm the guest network password has not changed since the code was printed.

Domain expiry: the silent code-killer

The most common way a long-lived static code dies is not the code at all — it is the domain. If you let the registration lapse, the domain is snapped up within minutes, often by squatters who park it with ads or, occasionally, by bad actors who build a lookalike page to phish your former visitors. A code printed on ten thousand packaging inserts suddenly sends customers somewhere hostile. Set your domain to auto-renew, keep the registrar contact current, and lock the domain against transfer. The code will outlive your business; make sure the domain does too.

Failure modeStatic codeDynamic code
Destination page deletedLink dead, code intactRedirect can be repointed
Domain lapsesCode sends traffic to squatterShort link still works if service alive
Redirect service shuts downCode unaffectedEvery code dies at once
You stop paying subscriptionCode unaffectedCodes go dark
Wi-Fi password changedCode intact, password wrongN/A

Planning for the long tail

Codes have a way of outliving the campaigns that created them. A batch of packaging printed today may still be on a shelf in three years; a business card handed out at a conference can sit in a rolodex for a decade. Treat every code you generate as something that may be scanned far in the future, and design accordingly: stable URLs, a domain you intend to keep, and a destination that will still make sense when the offer that prompted it is long forgotten. The cheapest insurance is a single redirect page on your own domain that you can repoint as many times as the business pivots, while every printed code keeps working.

The DNS lifecycle: how a domain dies in stages

A static QR code points at a URL, and a URL resolves through DNS. When a domain registration lapses, it does not vanish instantly — it passes through a defined lifecycle. The registrar marks it expired but held (a grace period of days to weeks during which renewal is cheap). Then it enters redemption, where recovery is possible but expensive. Then pending delete, then release back to the public pool. The danger window for a printed code is the moment the domain is released: within minutes it is typically registered by a squatter who parks ads, or occasionally by an attacker who builds a lookalike page to phish the visitors your printed codes still send. Auto-renew and a domain transfer lock are the two settings that prevent this entirely.

StageDuration (typical)What happens to your printed codes
Active / auto-renewedIndefiniteCodes resolve correctly
Expired (grace)0–45 daysDNS may still resolve; renewal is cheap
Redemption~30 daysDNS stops; recovery is costly
Pending delete~5 daysNo recovery; release imminent
ReleasedPermanentDomain may be squatted or weaponised

Redirect semantics: 301, 302, and the caching trap

When you move a destination behind a static code, the redirect status code you choose has lasting consequences. A 301 (Moved Permanently) is cached aggressively by browsers and CDNs — sometimes for months — which is efficient for traffic but means that if you later repoint the same redirect, visitors who cached the old target keep landing on it until the cache expires. A 302 (Found) or 307 (Temporary Redirect) is re-checked on every request, giving you full mutability at the cost of a round trip per scan. For a code whose destination changes seasonally, use 302; for a permanent move you never intend to reverse, 301 is correct but you must accept that the old target lingers in caches.

The practical implication for printed codes is significant. A static code pointed at a URL you control, behind which you run a 302 redirect, gives you full dynamic behaviour — swap destinations, run A/B tests, retire campaigns — with no third-party redirect service and no scan-data leakage. The printed pattern never changes; the server-side redirect is the only moving part, and it is entirely yours.

TLS certificates and the silent expiry

A static code can outlive its destination in a second, quieter way: the TLS certificate on the destination server expires. The QR pattern still resolves, the DNS still points at the right IP, but the browser throws a certificate warning and most users refuse to proceed. This is not a QR failure — the code did its job — but it reads to the customer as a broken code. Automated certificate renewal (Let's Encrypt with ACME, or your host's managed certificates) eliminates this failure mode entirely, and a lapsed certificate is the single most common cause of "the code stopped working" reports that are actually a server-side issue rather than a QR issue.

Every code made on this site is static. To keep a static code useful forever, host the destination at a URL you control and redirect it if you ever move the content.

Try the related tools