Attachment thumbnail redirect is a 302 redirect

It SHOULD be cached but it might no longer be valid if we empty cache or something.
This commit is contained in:
Mikael Nordfeldth 2016-01-06 20:07:40 +01:00
parent 4d179c6b0c
commit a9b5519293

View File

@ -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));