Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox cache in C#

Tags:

asp.net

In my ASP site there's a function for upload images and display upload image in data grid view but my problem is when we upload image and replace later one it's doesn't appear change in data grid without reload page.but this problem doesn't occured in google chrome .

like image 800
Eranga Wijethunga Avatar asked Jul 18 '26 07:07

Eranga Wijethunga


1 Answers

Your image will likely be getting cached on the browser. try either

  1. forcing it to have a different url every time its updated
  2. adding a last modified header to your response to the image request, that is the the write time of the file.
like image 178
kmcc049 Avatar answered Jul 20 '26 22:07

kmcc049



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!