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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:22:55+00:00 2026-05-25T03:22:55+00:00

I found most solutions are adding ?+time() after the image link to force browser

  • 0

I found most solutions are adding “?+time()” after the image link to force browser download image every time, however, this seems not an ideal solution if no real change on image.

Could the ifModified in .ajax give a help?

Any ideas are welcome, thank you!


Edit:

Is there any ways without appending “?+…” to the image ink?

And consider the image may be remote resource.

  • 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-25T03:22:56+00:00Added an answer on May 25, 2026 at 3:22 am

    The ideal would be, that you append file modification time (on the server) or the ** PHP filemtime()** timestamp. This way, only when you change image on the server, the timestamp changes and all users immediately (on next load) get new version of the image.

    But you have to use server-side language, like PHP. Google “filemtime()” for more info.

    Representative xample:

    <img src="image.png?<?php echo filemtime('image.png');?>" />
    

    or:

    <?php
    echo '<img src="image.png?'.filemtime('image.png').'" />';
    ?>
    

    You can also write a function to do that for you:

    function image($file) {
       return $file.'?'.filemtime($file);
    }
    echo '<img src="'.image('image.png').'" />';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been investigating this feature but it seems that most solutions require yo to
Most of the ASP.NET MVC paging solutions I have found by googling look like
I spend most of my time plotting data, but unfortunately I haven't found a
I have searched the site and I've found various solutions, most of them suggesting
found this puzzle HERE ... I made a brute force solution and I would
I have been lurking for a long time on this forum and I found
I would like to set an image as UINavigationController background but most solutions I
After googling, I found many solutions that don't seem to work or require permission
I've googled around and found most people advocating the use of kmalloc , as
Are there any alternatives to stat (which is found on most Unix systems) which

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.