Expiration
How long a QR code stays valid differs greatly by type. A static QR code has its data embedded in the code itself, so it remains readable indefinitely unless it is physically damaged. Scan the QR code printed on a business card ten years ago and it still returns exactly the same data today.
A dynamic QR code, by contrast, redirects via a server, so it stops working the moment that server goes down. On the free plans of QR code generation platforms, there are cases where redirection is disabled after a certain period. Even on a paid plan, if the service itself shuts down, every code already printed becomes useless.
Expiration is sometimes set deliberately. That is the usual design for coupon QR codes: a deadline is attached, and scanning after it has passed displays a message that the coupon has expired. QR codes on event tickets are invalidated once the event is over. And a TOTP authentication QR code is valid only during initial setup — once configuration is complete, it cannot be reused.
The case that demands the most attention in expiration management is QR codes carried on printed material. If the destination of a code printed on a leaflet or a package has expired and shows an error page, it damages trust in the brand. Take the circulation period of the print run into account and either set an expiry date with ample margin, or design a redirect to an alternative page for after the deadline has passed.