Changes bigthumbnail pr to not cache per second, just minute
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user