Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7015753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:41:36+00:00 2026-05-27T22:41:36+00:00

In my website, I’ve got a download page. When the user clicks on the

  • 0

In my website, I’ve got a download page. When the user clicks on the download button, they arrive on a “thank you for downloading” page. After 2 seconds, this page redirects to the actual physical file.

So it goes a bit like that:

Download page: http://example.com/download

User clicks on “Download”: http://example.com/download/getit

After 2 seconds, page redirects to: http://example.com/uploads/files/file_to_download_v2.1.zip

Currently, when I redirect to the downloadable file, I use a HTTP 301 code (Moved Permanently). However I don’t think this is the right code since, according to the standard:

The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. […] This response is cacheable unless indicated otherwise.

However, the page “download/getit” has not been assigned a new URI, it’s just redirecting to a different resource, but its own URI hasn’t changed. Also the response should not be cached since the file to download might change when a new version is released.

So what would be the right HTTP code in that case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:41:37+00:00Added an answer on May 27, 2026 at 10:41 pm

    If you return HTTP code, the page redirects immediately, whether you use 301 (Moved Permanently) or 302 (Found) (otherwise perfectly appropriate for your usecase). If you want to redirect after 2 seconds, you need to use one of:

    1. Refresh HTTP header

      Refresh: 2; url=http://example.com/uploads/files/file_to_download_v2.1.zip
      
    2. The same in HTML meta-equiv in the page content:

      <meta http-equiv="Refresh" content="2; url=http://example.com/uploads/files/file_to_download_v2.1.zip" />
      
    3. JavaScript, but that may not work for everybody, so I’d avoid that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My website is configured to display a custom HTML-page when an error occurs. This
Website has the following code: <ul class=left> <li><div id=run class=button><div class=inner>Run</div></div></li> </ul> And this
My website runs a local .exe file (generates some data), when a user clicks
This website: http://www.twosides.co/ on its main page if you look at it for a
My website was designed for firefox, and now that I've got most of the
My website project includes taking data from the user in the form of two
Website: http://tinyurl.com/2c5cxkc This website loads fine on Safari/Chrome/Firefox. A number of people are having
Website. This feels like a common problem, but it's a difficult one to Google!
My website's menu has text images for each button instead of pure text. When
My website allows visitors to search for homes (using PHP and MySql). After the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.