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 8104231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:46:39+00:00 2026-06-05T23:46:39+00:00

I constantly have to update main images on my site, the user will go

  • 0

I constantly have to update main images on my site, the user will go to the site but the images won’t be the updated versions unless they manually hit refresh. Even by me putting “please hit refresh to view updated images” the users ignore this and I have to e-mail them to hit the refresh button. I’ve tried having the initial index.html reload to the actual site using Javascript like this

The initial index.html:

document.location.href='index2.php?code=reload_page'

Then on the index2.php:

$the_code = $_GET['code'];

  if($the_code == "reload_page")
    {
     $page = $_SERVER['PHP_SELF'];
     $sec = "1";
     header("Refresh: $sec; url=$page");
    }
  else
    {
      //load page regular
    }

I tried it like this, but it didn’t work, still has old images until you hit the refresh button. Any other ways of accomplishing this using PHP or javascript/jquery?

  • 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-05T23:46:40+00:00Added an answer on June 5, 2026 at 11:46 pm

    The problem with images not refreshing might be an issue with caching in web browser or on the server proxy etc. It is configuration issue and might be not dependant on you. Easy trick to bypass this is to add timestamp to img url. Every time you regenerate your content in index.php just add some query string to your image as this:

    <?php
    echo '<img src="my_image.png?ts='.time().'" />';
    ?>
    

    it will trick your browser and proxies on the way that it is another image and prevent caching.

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

Sidebar

Related Questions

Should I constantly have a session open in my web site with user accounts,
I have a vector that is constantly being updated (about 5-20 times a second)
I have a text file which needs to be constantly updated (regular intervals). All
I have a MySQL table with about 5,000,000 rows that are being constantly updated
I have a program that starts constantly juggles between 3 separate timers. The main
If I have say for example 100,000 rows to insert/update/delete, and this number will
I constantly have some situations in which I have to retry some operations if
I'm editing a CSS style sheet in Eclipse and I constantly have to copy
I have an application that needs updating constantly. I would like to create a
i have a few developers who constantly put If null checks For example: Run(Order

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.