Changes bigthumbnail pr to not cache per second, just minute

This commit is contained in:
Shannon
2015-11-25 20:21:24 +01:00
parent c97617f5b5
commit b7795e19ef
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ angular.module("umbraco")
if (thumbnail) {
if (mediaHelper.detectIfImageByExtension(property.value)) {
//get default big thumbnail from image processor
var thumbnailUrl = property.value + "?rnd=" + moment(entity.updateDate).format("YYYYMMDDHHmmss") + "&width=500";
var thumbnailUrl = property.value + "?rnd=" + moment(entity.updateDate).format("YYYYMMDDHHmm") + "&width=500";
return thumbnailUrl;
}
else {

View File

@@ -113,7 +113,7 @@ namespace Umbraco.Web.Editors
var imagePath = imageProp.Value.ToString();
var response = Request.CreateResponse( HttpStatusCode.Found );
response.Headers.Location = new Uri( string.Format( "{0}?rnd={1}&width={2}", imagePath, string.Format( "{0:yyyyMMddHHmmss}", media.UpdateDate ), width ), UriKind.Relative );
response.Headers.Location = new Uri( string.Format( "{0}?rnd={1}&width={2}", imagePath, string.Format( "{0:yyyyMMddHHmm}", media.UpdateDate ), width ), UriKind.Relative );
return response;
}
}