summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-05 01:21:51 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-05 01:21:51 -0800
commit3488202f6728261f6d140f62353ea405f2680452 (patch)
treed482789b497c1d8165a31debd5c90b6ab76a8aaf /apps/files_sharing
parentf91fe8d595d3ab00dcf2e6b68fba3a92616143f5 (diff)
parent35dd568f8fd627a45d3bb090ed7e955afadec9e3 (diff)
downloadnextcloud-server-3488202f6728261f6d140f62353ea405f2680452.tar.gz
nextcloud-server-3488202f6728261f6d140f62353ea405f2680452.zip
Merge pull request #5582 from owncloud/files-previewcaching
Append file etag to preview URLs
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 3d02227cb08..6504de84386 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -28,7 +28,7 @@ function determineIcon($file, $sharingRoot, $sharingToken) {
$relativePath = substr($file['path'], 6);
$relativePath = substr($relativePath, strlen($sharingRoot));
if($file['isPreviewAvailable']) {
- return OCP\publicPreview_icon($relativePath, $sharingToken);
+ return OCP\publicPreview_icon($relativePath, $sharingToken) . '&c=' . $file['etag'];
}
return OCP\mimetype_icon($file['mimetype']);
}