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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:10:09+00:00 2026-05-27T13:10:09+00:00

No code, because this is mostly conceptual: So I’ve got a folder of images

  • 0

No code, because this is mostly conceptual:

So I’ve got a folder of images named thusly:

1.jpg
2.jpg
3.jpg
4.jpg

These images populate a gallery, and as you might assume, the ordering in the gallery is dictated by their names. So, in my php thingamabob, I allow the client to reorder the images. So, say our images depict these things:

1.jpg – “dog”
2.jpg – “cat”
3.jpg – “chicken”
4.jpg – “postmodernism”

My client decides to show “postmodernism” first, so my php thingamabob renames 4.jpg to 1.jpg, while shifting the others 1 2 and 3, to 2 3 4 respectively like so:

1.jpg – “postmodernism”
2.jpg – “dog”
3.jpg – “cat”
4.jpg – “chicken”

Great, so all seems fair and well as I look in the actual folder of the server at each image. 1.jpg exists as an image of “postmodernism” and the rest follow suit. But not so on our browser, which displays the old order. Sure enough the first image link is “1.jpg”, but our “postmodern” image seems to defy its metaphysical reality as a file, and the browser displays a dog instead. I guess this is the browser caching the images and not feeling the need to reload them? Can this be broken with a simple client-side script?

  • 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-27T13:10:09+00:00Added an answer on May 27, 2026 at 1:10 pm

    append random string or time at the end or the image url –

    /images/1.jpg?anythinrandonghere

    If caching is specific to user or something else then

    /images/1.jpg?username

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

Sidebar

Related Questions

This code generates Low memory warning because background 5 thread is almostly loading images
Hey, I don't have any code because I don't know how to do this.
I have this code and I couldn't run it because i get this error:
I don't need this declaration because it only makes my code big and unreadable.
Hey I have this code but it doesn't work because it is expecting a
This is my server code I have a problem because my program freeze and
I make call from my app with this code (i use webview because after
I've been considering writing my own UI framework. This is mostly because I have
I need start off with code because I am not sure what terminology to
I'm trying to speed up my code because it's running very long. I already

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.