Blogs Details
March 07, 2016   Posted in,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:


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