Commit a9b55192 authored by mmn's avatar mmn

Attachment thumbnail redirect is a 302 redirect

It SHOULD be cached but it might no longer be valid if we empty cache or something.
parent 4d179c6b
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment