From a9b5519293a2069ab067b0990fd3cd40beb93e2f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 20:07:40 +0100 Subject: [PATCH] Attachment thumbnail redirect is a 302 redirect It SHOULD be cached but it might no longer be valid if we empty cache or something. --- actions/attachment_thumbnail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/attachment_thumbnail.php b/actions/attachment_thumbnail.php index e8f89ffc36..d1f9f2d00c 100644 --- a/actions/attachment_thumbnail.php +++ b/actions/attachment_thumbnail.php @@ -59,7 +59,7 @@ class Attachment_thumbnailAction extends AttachmentAction try { $thumbnail = $this->attachment->getThumbnail($this->thumb_w, $this->thumb_h, $this->thumb_c); } catch (UseFileAsThumbnailException $e) { - common_redirect($e->file->getUrl()); + common_redirect($e->file->getUrl(), 302); } common_redirect(File_thumbnail::url($thumbnail->filename));