From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 19:07:40 +0000 (+0100) Subject: Attachment thumbnail redirect is a 302 redirect X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a9b5519293a2069ab067b0990fd3cd40beb93e2f;p=quix0rs-gnu-social.git Attachment thumbnail redirect is a 302 redirect It SHOULD be cached but it might no longer be valid if we empty cache or something. --- 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));