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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:43:55+00:00 2026-05-26T21:43:55+00:00

I am developing an architecture that needs to be rather scalable, I was am

  • 0

I am developing an architecture that needs to be rather scalable, I was am wondering how to handle my user images.

Currently, I have been storing a user’s image as a file like so:

/users/{user id}/normal.jpg
/users/{user id}/small.jpg

The problem is that I tend to run into caching issue’s with the persons’ browser e.g. when the user uploads a new image, it overwrites the normal.jpg and small.jpg, but the the user’s browse doesn’t immediately reflect the change.

Would it be better to not delete any images?

  • 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-26T21:43:55+00:00Added an answer on May 26, 2026 at 9:43 pm

    Give newly uploaded images any kind of random name, that should get rid of caching problems.
    For example:

    /users/{user id}/normal_{timestamp_of_upload}.jpg
    

    Whenever a new upload is done, remove the old one and put the new one in place. Off course you’ll need to track the actual filename somewhere in your database along with the user’s other info.

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

Sidebar

Related Questions

I have been developing applications that have a three-tier architecture and mostly using MVC
We're developing an application that will have a plug-in architecture to allow consumers of
I am currently developing a rather complex jQuery plugin. One that I am designing
I am developing an application in C# WPF which will have Client-Server architecture (Client
I am developing a web app but is not satisfied with is architecture that
I am developing application in N-Tier Architecture. as we all know that we need
I'm currently developing an ASP.NET Human Resources System. I'm using a layered architecture with
I’m aware that not everyone uses a thorough architecture when developing an MVC application
I am currently developing an architecture in PHP and MySQL and a problem has
I am developing a desktop application with a MainForm that's grown rather large. There

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.