@Siddhesh Sreedar To build upon what Lex shared, I agree that this sounds like a browser cache issue.
You can try adding a cache-busting query parameter to the URL of the changed image file. This will force the browser to download the new image instead of using the cached one.
For example, if your image file is named "image.jpg", you can change the URL to "image.jpg?v=2" or "image.jpg?version=2". This will make the browser think that it's a new file and download it again.
If this doesn't work, you can try setting the cache-control header in your web server configuration. You can set it to "no-cache" or "max-age=0" to force the browser to always request the latest version of the file. (This would be less ideal as it could slow the experience for users of your site as page load times might increase and depending on the amount of traffic on your site, your Web App could see more resource consumption resulting in needing additional instances to handle the workload.)
You can set the cache-control header in your Flask app by adding the following line to your app.py file:
from
This will set the cache timeout to 0 for all files in the "images" directory. You can adjust the directory and cache timeout as needed.