---
title: "301 vs 302 redirects: how a link redirect works, and why a QR code uses a temporary one"
description: "A 301 redirect says a page moved permanently, a 302 that the move is temporary. How a redirect works (status code, Location header), what 303, 307 and 308 add, what Chrome stored in our test, what Google says, and why a QR code redirect is temporary. Sourced to RFC 9110."
canonical: "https://linkbreakers.com/help/article/301-vs-302-redirects-how-link-redirects-work"
last-updated: 2026-11-22
---

# 301 vs 302 redirects: how a link redirect works, and why a QR code uses a temporary one

> A 301 redirect says a page moved permanently, a 302 that the move is temporary. How a redirect works (status code, Location header), what 303, 307 and 308 add, what Chrome stored in our test, what Google says, and why a QR code redirect is temporary. Sourced to RFC 9110.

![The five HTTP redirect codes in two columns: permanent, 301 Moved Permanently and 308 Permanent Redirect; temporary, 302 Found, 307 Temporary Redirect and 303 See Other, which loads another page, mainly after a form. 307 and 308 keep a form being sent.](/screenshots/301-vs-302-redirects-codes.png)

## Short answer

A **redirect** is a server's answer that says "what you asked for is at another address", and the browser goes there on its own, without the visitor doing anything. The answer carries a three-digit **status code** and a `Location` header holding the new address. In the **301 vs 302 redirect** question, the two codes say opposite things about time:

- **301 Moved Permanently** (an HTTP 301, or **301 redirect**) says the page has moved for good. A browser may store it and, next time, go straight to the new address without asking the server.
- **302 Found** (a **302 redirect**) says the move is temporary. The browser asks the server again on every visit.

We tested it. In Chrome, after we changed the destination behind a 301, the browser kept opening the old page and never asked the server again. Behind a 302, the very next visit followed the change.

**The rule:** use a 301 only when a page has moved for good and will never move back. Use a temporary redirect (302, 303 or 307) when the destination may change, or when every visit must reach your server. That is why a **QR code redirect** should be temporary: Linkbreakers answers every scan with a **303 See Other**, a temporary redirect, so a changed destination reaches the very next scan, and each scan reaches Linkbreakers to be counted.

## How a link redirect works: the status code and the Location header

When you open a link or scan a QR code, your browser sends a **request** to a **server**, the computer that holds the website, asking for one address. The server answers every request with a three-digit status code. Its first digit gives the class of the answer (RFC 9110, section 15):

| Class | What it means | Example |
|---|---|---|
| 2xx | Success: here is the page | 200 OK |
| 3xx | Redirection: go somewhere else | 301 Moved Permanently |
| 4xx | Client error: the request cannot be served | 404 Not Found |

HTTP's specification, RFC 9110, defines the 3xx class like this: it "indicates that further action needs to be taken by the user agent in order to fulfill the request" (section 15.4). The **user agent** is the browser.

The further action is written in the `Location` **header**, a labelled line of the server's answer. For a 3xx answer, "the Location value refers to the preferred target resource for automatically redirecting the request" (section 10.2.2). And when it is there, "the user agent MAY automatically redirect its request to the URI referenced by the Location field value" (section 15.4). Browsers do: the visitor sees the new page load, not the redirect.

Here is what a redirect looks like, on an example address:

```text
HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-page
```

That is the whole answer. The browser reads the code, takes the address in `Location`, and sends a new request there.

A redirect can point to another redirect. If a chain ever loops back on itself, the specification asks the browser to notice: "A client SHOULD detect and intervene in cyclical redirections (i.e., "infinite" redirection loops)" (section 15.4).

## What a 301 redirect means: HTTP 301 Moved Permanently

A **301** says "the target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs" (RFC 9110, section 15.4.2). In plain words: this address is retired, use the new one from now on.

The part that matters in practice is the **cache**: what the browser remembers from earlier visits so it does not have to ask again. RFC 9110 lists 301 among the status codes that are **heuristically cacheable** (section 15.1):

> Responses with status codes that are defined as heuristically cacheable (e.g., 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, and 501 in this specification) can be reused by a cache with heuristic expiration unless otherwise indicated by the method definition or explicit cache controls; all other status codes are not heuristically cacheable.

"Heuristic expiration" means the browser decides for itself how long to keep an answer when the server said nothing about it. So a 301 sent with no caching instruction may be stored and reused, and the next visit can go straight to the stored address without the server ever hearing about it. 302 is not on that list.

How long does a browser keep it? In Chromium, the open-source code Chrome is built on, the file that decides how long an answer stays fresh (`net/http/http_response_headers.cc`) says of 300, 301, 308 and 410: "These responses are implicitly fresh (unless otherwise overruled)", and sets their freshness to the maximum value, with the comment "It should never be stale".

## Our test: what Chrome did with each redirect code

We wanted to see that behaviour, not only read it. On 22 November 2026 we ran a small test web server on one computer and pointed desktop Chrome at it (version 157.0.8103.80, headless, which means without a window, one fresh profile). For each answer under test:

1. The server answered a test address with that code and `Location: /page-a`.
2. Chrome opened the test address. It landed on page A.
3. We changed the destination to `/page-b`, as you would change where a printed QR code goes.
4. Chrome opened a blank page, then the same test address again (second visit), then the same address in a new tab (third visit).

The server logged every request it received, so we could see which visits reached it.

![Our test with a 301 and no caching instructions: three visits in Chrome all opened page A, the second and third from the browser's cache, while the test server already sent visitors to page B and saw 1 request in 3 visits.](/screenshots/301-vs-302-redirects-chrome-test.png)

| The server's answer | 1st visit | 2nd visit | 3rd visit (new tab) | Requests the server saw |
|---|---|---|---|---|
| 301, no caching header | page A | **page A** | **page A** | **1** |
| 308, no caching header | page A | **page A** | **page A** | **1** |
| 302, no caching header | page A | page B | page B | 3 |
| 303, no caching header | page A | page B | page B | 3 |
| 307, no caching header | page A | page B | page B | 3 |
| 301 with `Cache-Control: no-store` | page A | page B | page B | 3 |
| 301 with `Cache-Control: max-age=0` | page A | page B | page B | 3 |

**Requests that reached the server over three visits, the destination changed after the first**

- **1 of 3** visits reached the server with a 301 or 308
- **3 of 3** with a 302, 303 or 307

| The server's answer | Requests the server received |
|---|---|
| 301 | 1 requests |
| 308 | 1 requests |
| 302 | 3 requests |
| 303 | 3 requests |
| 307 | 3 requests |
| 301 + no-store | 3 requests |
| 301 + max-age=0 | 3 requests |

Measured by Linkbreakers on 22 November 2026: desktop Chrome 157.0.8103.80, headless, one fresh profile, a local test server; the destination changed from page A to page B after the first visit.

**What it shows.** With a 301 or a 308 and no caching header, Chrome stored the redirect on the first visit and reused it: after the destination changed, it kept opening the old page, and the server never heard from it again, not even from a new tab. With a 302, 303 or 307, Chrome asked the server every time and followed the change at once. A 301 sent with `Cache-Control: no-store` (do not store this) or `Cache-Control: max-age=0` (this is stale at once) was not stored either: the server's own caching instruction overruled the default, as the specification and the Chromium code both say it can.

**What it does not show.** This is one browser: desktop Chrome, headless, with one profile. Other browsers were not tested and may behave differently. A browser whose cache is cleared, or another phone that never saw the redirect, asks the server again.

## What a 302 redirect means: Found, a temporary move

A **302** says "the target resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client ought to continue to use the target URI for future requests" (RFC 9110, section 15.4.3). In plain words: go there for now, but ask me again next time.

A 302 is not heuristically cacheable, so with no caching header the browser has nothing to reuse. That is what our test saw: three visits, three requests, and the change followed on the second visit.

## 303, 307 and 308: the other redirect codes

The other three codes exist because of one detail: what happens to a **form being sent**. Every request carries a **method**, the verb of the request: GET to load a page, POST to send a form (an order, a sign-up). When a form is sent to an address that redirects, should the browser send the form again to the new address, or just load the new page?

For 301 and 302, RFC 9110 leaves it open: "For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request" (sections 15.4.2 and 15.4.3). Its history note explains why: in HTTP/1.0 both codes kept the method, but "Prevailing practice eventually converged on changing the method to GET. 307 (Temporary Redirect) and 308 (Permanent Redirect) [RFC7538] were later added to unambiguously indicate method-preserving redirects" (section 15.4).

- **307 Temporary Redirect** is a 302 that keeps the form: the target "resides temporarily under a different URI and the user agent MUST NOT change the request method", and "Since the redirection can change over time, the client ought to continue using the original target URI for future requests" (section 15.4.8).
- **308 Permanent Redirect** is a 301 that keeps the form: the target "has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs". The specification notes it is "much younger (June 2014) than its sibling codes" (section 15.4.9).
- **303 See Other** sends the browser to "a different resource, as indicated by a URI in the Location header field, which is intended to provide an indirect response to the original request". The next request is always a normal page load ("a GET or HEAD request if using HTTP"), and "the new URI in the Location header field is not considered equivalent to the target URI". It is "primarily used to allow the output of a POST action to redirect the user agent to a different resource" (section 15.4.4): after you send a form, the server shows you a result page. It behaves as a temporary redirect: it is not heuristically cacheable, and the new address does not replace the old one.

### The five redirect codes side by side

| Code | Name | Permanent or temporary | Stored by default (RFC 9110, 15.1) | Chrome in our test, after a change | A form being sent |
|---|---|---|---|---|---|
| 301 | Moved Permanently | permanent | yes | kept the old page | may become a normal page load |
| 302 | Found | temporary | no | followed the change | may become a normal page load |
| 303 | See Other | temporary | no | followed the change | always becomes a normal page load |
| 307 | Temporary Redirect | temporary | no | followed the change | stays a form being sent |
| 308 | Permanent Redirect | permanent | yes | kept the old page | stays a form being sent |

"Stored by default" means heuristically cacheable: the browser may store the redirect when the server sends no caching instruction.

## What Google does with 301 and 302 redirects

Search engines read redirects too. Google's documentation, "Redirects and Google Search" (Google Search Central, last updated 16 November 2026), splits them the same way. The word it uses is **canonical**: the address a search engine shows in its results for a page.

- **Permanent (301, 308):** "Googlebot follows the redirect, and the indexing pipeline uses the redirect as a signal that the redirect target should be canonical." And: "Use permanent redirects when you're sure that the redirect won't be reverted."
- **Temporary (302, 303, 307):** "Googlebot follows the redirect, but the indexing pipeline doesn't use the redirect as a signal that the redirect target should be canonical."

Its advice: "If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a permanent server-side redirect whenever possible." And: "If you just want to send users to a different page temporarily, use a temporary redirect. This will also ensure that Google isn't influenced by the redirect which may help keep the old URL in its Search results."

This is Google's documentation for Google Search. This page does not cover other search engines.

## Why a QR code uses a temporary redirect

A **static QR code** stores the destination's address itself, so a scan opens that page directly, with no redirect. A **dynamic QR code** stores a short link on a server instead, and the server answers each scan with a redirect to the destination saved for it. That is what lets you change where a printed code goes. [How a dynamic QR code works](/help/article/dynamic-vs-static-qr-codes-key-differences) explains it step by step.

The whole idea depends on the phone asking the server on every scan. A permanent redirect breaks that in two ways:

1. **The browser can keep the old page.** Someone who scanned once can have the 301 stored. You change the destination; their next scan opens the old one, straight from their browser, as Chrome did in our test. You cannot reach that stored copy from your server.
2. **The scan that skips the server is not counted.** If the browser goes straight to the stored address, the server never sees the scan. It is missing from your numbers, and nothing you set up to happen on a scan runs: no form, no condition, no different page by country or time.

A temporary redirect sent with no caching header keeps every scan going through the server, so each one is counted and gets the destination saved at that moment.

## 301 vs 302: when to use which

- **Use a 301 (or a 308)** when a page has moved for good: a page renamed, a site moved to a new domain, two pages merged. You are sure it will not move back, and you want search engines to show the new address. Use a 308 if forms are sent to the old address and must stay forms.
- **Use a temporary redirect** when the destination may change, depends on who is asking, or when each visit must reach your server: a QR code, a campaign link, a short link, a sale page for a week, a page down for maintenance. A **302** is the usual one; a **307** if a form being sent must stay a form; a **303** to show a page after a form is sent.
- **When unsure, use a temporary one.** A temporary redirect can be made permanent later. A permanent one that a browser has stored keeps opening the old page in that browser (Chrome, in our test), and your server cannot call it back.

## What Linkbreakers does: a 303 on every scan

**Every scan or click of a Linkbreakers link is answered with a 303 See Other**, with no caching header. This is the real answer to a scan of our demo QR code for a cold brew bottle, on 22 November 2026:

```text
HTTP/2 303
location: https://www.lavazzausa.com/en/recipes-and-coffee-hacks/homemade-cold-brew?lbsrc=qrcode
```

The answer also sets a cookie, `linkbreakers.browser`, which is how the same phone is recognised on its next scan. There is no `cache-control` line. A 303 is a temporary redirect: not heuristically cacheable, and its new address is "not considered equivalent" to the short link. Google lists it with the temporary ones. When a workflow cannot finish, the [fallback destination](/help/article/what-is-a-fallback-destination-in-linkbreakers) is reached with a 303 as well.

So each scan reaches Linkbreakers, and three things happen:

- **The scan is recorded:** the time, the device and an approximate location. See [how QR code tracking works](/help/article/how-qr-code-tracking-works-from-scan-to-analytics).
- **The link's workflow runs:** the steps that happen after a scan. A condition can send each visitor to a different page by country, language, device or time of day, and a form can ask for an email first.
- **A change applies to the next scan.** The destination lives on the link's [Redirect step](/workflow-steps/redirect). Change its address in the workflow editor, and the very next scan of a code already printed opens the new page.

Dynamic QR codes and unlimited scans are on every plan, Free included (see [pricing](/pricing)).

### What that gives you

Say you run a café and print a QR code on 40 table cards, opening your winter menu. In March the menu moves to a new page. You change the Redirect step's destination once. The next guest who scans opens the spring menu, even a regular who scanned the same card last week on the same phone, and their scan shows up in your analytics. The cards stay on the tables: no reprint, and the scans still reach you, so you see how often the new menu is opened.

## Limits and caveats

- **Our test is one browser.** Desktop Chrome 157, headless, one fresh profile. Other browsers, and the browsers on phones, were not tested and may behave differently. A browser with a cleared cache, or a phone that never saw the redirect, asks the server again.
- **"May" is not "must".** RFC 9110 allows a browser to store a 301 or 308; it does not require it.
- **This page is about redirects sent with no caching header**, as Linkbreakers sends them. A caching header changes the result, as the two `Cache-Control` rows of our test show.
- **Google speaks for Google.** The quotes describe Google Search, from its documentation as updated on 16 November 2026.

## Frequently asked questions

### What is the difference between a 301 and a 302 redirect?

A 301 says the page has moved permanently; a 302 says the move is temporary. A browser may store a 301 and skip the server next time, while it asks again on every visit with a 302. Google treats a 301 as a signal to show the new address in its results, and a 302 not.

### What does HTTP 301 Moved Permanently mean?

That the address you asked for has been replaced for good by the one in the `Location` header, and that "any future references to this resource ought to use" the new one (RFC 9110, section 15.4.2). Your browser follows it at once, and may remember it for later visits.

### Is a 301 or 302 better for SEO?

Neither is better; they say different things. Google's documentation says a permanent redirect is a signal that the new address should be the one shown in search results, and a temporary one is not. If a page has moved for good, use a 301. If the move is temporary, use a 302, which "may help keep the old URL in its Search results".

### Can you undo a 301 redirect?

Yes, on your server: change or remove it, and any browser that has not stored it gets the new answer. A browser that has stored it can keep opening the old destination without asking your server, as Chrome did in our test, until its cache is cleared. Google's advice is to use permanent redirects only "when you're sure that the redirect won't be reverted".

### Does a QR code use a 301 or 302 redirect?

A QR code itself only stores text. A static code stores the page's address and uses no redirect. A dynamic code stores a short link, and the server behind it answers with a redirect. It should be a temporary one (302, 303 or 307), so each scan reaches the server and a changed destination applies to the next scan. Linkbreakers answers every scan with a 303 See Other.

### What is the difference between 302 and 307?

Both are temporary. With a 302, a browser "MAY change the request method from POST to GET": a form being sent can turn into a normal page load at the new address. With a 307, the browser "MUST NOT change the request method", so a form being sent is sent again to the new address (RFC 9110, sections 15.4.3 and 15.4.8).

## Sources

1. [IETF, RFC 9110, HTTP Semantics (June 2022), sections 10.2.2 (Location), 15 and 15.1 (status codes, heuristically cacheable), 15.4 (Redirection 3xx), 15.4.2 (301), 15.4.3 (302), 15.4.4 (303), 15.4.8 (307), 15.4.9 (308)](https://www.rfc-editor.org/rfc/rfc9110)
2. [Google Search Central, Redirects and Google Search (last updated 16 November 2026 UTC)](https://developers.google.com/search/docs/crawling-indexing/301-redirects)
3. [Chromium, `net/http/http_response_headers.cc`, the freshness calculation (main branch, read 22 November 2026)](https://chromium.googlesource.com/chromium/src/+/main/net/http/http_response_headers.cc)
4. Linkbreakers redirect test, 22 November 2026: a script that runs a local web server answering a test address with each code under test, then drives desktop Chrome 157.0.8103.80 (headless, one fresh profile) through three visits per code, changing the destination after the first, and counts the requests the server receives
5. The live answer to a scan of `https://linkbreak.ing/0GXVdukcp?lbsrc=qrcode`, 22 November 2026 (`HTTP/2 303` with its `location` header, no `cache-control`)
6. Linkbreakers api and edge code, read 22 November 2026: every visitor redirect, fallback destinations included, is a 303 See Other
7. [Linkbreakers pricing](/pricing): dynamic QR codes and unlimited scans on every plan

## Last reviewed

22 November 2026, by Laurent Schaffner: RFC 9110 quoted from the RFC Editor's text, Google's page read as last updated on 16 November 2026, the Chromium freshness code read on its main branch, every redirect code tested in Chrome, and the Linkbreakers answer checked live and in the api.
