Created
December 15, 2014 21:48
-
-
Save hansott/206b1eaf53af31e43c71 to your computer and use it in GitHub Desktop.
Disable browser caching in razor templates (ASP.NET MVC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
var random = new Random(); | |
int r = random.Next(1000); | |
} | |
<p><img src="@Url.Content("~/images/records/" + Model.id + ".jpg")?time=@r" alt="Album cover" class="img-responsive" /></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment