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

  • Home
  • SEARCH
  • 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 8576153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:51:42+00:00 2026-06-11T19:51:42+00:00

In my code, I use window.location.replace(url) to redirect the user to a different web

  • 0

In my code, I use window.location.replace(url) to redirect the user to a different web page.

I also want to make sure that when the user goes to that page, the browser will get the latest code from the server, not just use the cache. the above code seems working fine in Firefox. It will get the latest code from the server. But in IE it seems that it is using cached value from user’s previous visit. How to I solve this problem?

I know you can use location.reload(true) to do a forced refresh. But I only want to refresh the web page when the user is redirected from using the code above.

Thanks.

  • 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-06-11T19:51:44+00:00Added an answer on June 11, 2026 at 7:51 pm

    If you append a timestamp to the end of the url, your browser should bypass the cache. For example,

    function goToPageWithoutCachedData(urlToGoTo) {
        urlToGoto += '?_=' + new Date();
        window.location = urlToGoto;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using window.location.replace() to redirect to a new page (same domain as the original).
i use the code below to open a new window when a user drops
I want to use jQuery to redirect a person arriving at this page to
I have the following code: use strict; function isDefined(variable) { return (typeof (window[variable]) ===
With C#, i use this code to list main window processes titles Process[] ProcessArray
In a project i use the following code to open a window: window.open(href, 'mysite'
When I want to use multiple windows in my code, I normally do it
Using the following code: use LWP::Simple; my $url= http://example.com; my $html= get $url; I
I want to inspect the request that will change window.location or whatever it may
How to make a window.location.href judge? if window.location.href not match ?search= , make 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.