Blogs Details
March 07, 2016   Posted in Asp.net,C#,MVC



One way to accomplish this is to append a query string on the image URL that changes when the image changes. A drop dead simple one is using:

"image.jpg?" + new Date().getTime()

That would give me a URL like this:

"image.jpg?1321626971855"

Now you could this more intelligently in your JavaScript by only changing the timestamp (or adding the timestamp) when the image is changed.

0 Comment

Leave Reply




    Blogs visitors

  • 1,045 visitors
portfolio