Expiring Link
Definition
An expiring link is an address for a hosted file that carries an end condition fixed when the link is made. Most hosts offer a small set of windows: 24 hours, 7 days, 30 days, or an exact date and time. Once that moment passes the address stops returning the file and returns an error instead, normally 404 Not Found or 410 Gone. Expiry belongs to the link, not to the file, so the owner can keep the file and issue a fresh address later. It is a different control from a password-protected link, which asks every visitor for a secret but never times out by itself. Some systems count fetches rather than minutes, closing the address after the first download or the fifth.
Why It Matters
A link sent by email outlives the conversation that produced it. A quote shared in March is still fetchable in December by anyone who was ever forwarded the message, and the sender has no idea it is still open. An end date caps that exposure without relying on somebody remembering to tidy up. Getting the window wrong hurts in both directions: 24 hours on a document a client reads over a weekend means re-sending it on Monday, while 'no expiry' on a price list means the 2024 rates are still live two years on. Match the window to the decision — a tender pack that closes in three weeks gets 21 days.
How It Works
The host records an expiry timestamp beside the file. Every request runs that check before any bytes move: the edge compares the clock against the stored value and, if it has passed, answers 410 Gone and stops there. Caching has to agree with the deadline, so the response carries a Cache-Control max-age that cannot outlive the expiry — otherwise an edge node keeps serving a copy of a file whose link is meant to be dead. A presigned URL reaches the same result without a lookup by signing the expiry into the query string, so a stale request can be rejected from the signature alone. Count-based expiry needs an atomic counter rather than a clock, incremented as the response begins. Either way the stored object is untouched; only the route is withdrawn.
Real-World Example
A consultancy publishes a 6 MB rate card at kestrel-rates.99helpers.site and sets it to expire in 14 days, the length of the pitch window. Prospects open it freely for a fortnight. On day fifteen the address answers 410, so nobody is quoting last quarter's numbers back at the sales team after finding the link in a forwarded thread. The file itself is still in 99helpers with its version history, so publishing the new rate card next quarter is one upload and a new expiry.
Common Mistakes
- ✕Treating expiry as secrecy — anyone who opened the link before the deadline may already have the file saved on disk, and no expiry can call that copy back
- ✕Setting an expiry shorter than the reader's working week — a 24-hour window on a Friday afternoon means the link is dead before Monday and you send it twice
- ✕Letting a long cache lifetime outlive the expiry, so a cached copy at the edge keeps answering requests for a link the origin has already closed
- ✕Forgetting that a link posted in a public place is fetched by crawlers and preview bots, which can burn a download-count expiry before a person ever clicks
Related Terms
Shareable Link
A shareable link is the address you hand to another person so they can reach a file you have hosted. It normally points at a page that presents the file — name, size, a download button — rather than at the raw bytes.
Password-Protected Link
A hosted address that asks for a shared secret before it will show the file or site behind it. One password covers everyone who has the link; there are no individual accounts.
Presigned URL
A presigned URL is a link to a private stored object that carries its own authorisation in the query string. Anyone holding the link can perform the one operation it was signed for, on the one object it names, until it expires.
Download Link
A download link is an address that makes the browser save a file to disk instead of displaying it in a tab. The behaviour comes from a header on the response or an attribute on the anchor tag, not from anything inside the file.
Cache-Control
The HTTP response header that tells browsers and caches whether they may keep a copy of a file, for how long, and who is allowed to. It is the single biggest lever over how fast a site feels on a second visit.
Put a file online in seconds
Drop in a document, an image, a page or a whole static website and share the link — free, with no build step and no server to set up.
Host a file free →