Eranga Wijethunga
Eranga Wijethunga

Reputation: 215

Firefox cache in C#

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 .

Upvotes: 3

Views: 283

Answers (1)

kmcc049
kmcc049

Reputation: 2801

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.

Upvotes: 2

Related Questions