diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 01:21:51 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 01:21:51 -0800 |
commit | 3488202f6728261f6d140f62353ea405f2680452 (patch) | |
tree | d482789b497c1d8165a31debd5c90b6ab76a8aaf /apps/files_sharing | |
parent | f91fe8d595d3ab00dcf2e6b68fba3a92616143f5 (diff) | |
parent | 35dd568f8fd627a45d3bb090ed7e955afadec9e3 (diff) | |
download | nextcloud-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.php | 2 |
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']); } |