summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
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/lib
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/lib')
-rw-r--r--apps/files/lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 709d78a4d45..7692dd67574 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -40,7 +40,7 @@ class Helper
if($file['isPreviewAvailable']) {
$pathForPreview = $file['directory'] . '/' . $file['name'];
- return \OC_Helper::previewIcon($pathForPreview);
+ return \OC_Helper::previewIcon($pathForPreview) . '&c=' . $file['etag'];
}
return \OC_Helper::mimetypeIcon($file['mimetype']);
}