Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1854

Redirect After a Server Response Without JavaScript

$
0
0

I'm creating a website with no JavaScript, and I'm puzzled about how platforms like Dread manage to redirect users (e.g., in a queue system) pending a server response.

Here's what I want to achieve:

  • The user visits a webpage.
  • A loading screen is displayed.
  • The server processes some task, and once it's done, the page refreshes or redirects to a new page.

Initially, I thought this could involve some sort of workaround, like loading an image that "waits" for the server to respond with a Location header for the redirect. However, I'm not sure if that's the right approach.

My Questions:

  • What HTTP headers should I send to achieve this behavior?
  • How is this done entirely with HTML and server-side logic (without any JavaScript)?
  • Are there other techniques or best practices for implementing this?

Thank you for any insights!

Edit: Dread doesnt use a meta-refresh tag, and I dont want the page to periodically refresh - I want it to be asynchronous


Viewing all articles
Browse latest Browse all 1854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>