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:
parent
4d179c6b0c
commit
a9b5519293
|
@ -59,7 +59,7 @@ class Attachment_thumbnailAction extends AttachmentAction
|
||||||
try {
|
try {
|
||||||
$thumbnail = $this->attachment->getThumbnail($this->thumb_w, $this->thumb_h, $this->thumb_c);
|
$thumbnail = $this->attachment->getThumbnail($this->thumb_w, $this->thumb_h, $this->thumb_c);
|
||||||
} catch (UseFileAsThumbnailException $e) {
|
} catch (UseFileAsThumbnailException $e) {
|
||||||
common_redirect($e->file->getUrl());
|
common_redirect($e->file->getUrl(), 302);
|
||||||
}
|
}
|
||||||
|
|
||||||
common_redirect(File_thumbnail::url($thumbnail->filename));
|
common_redirect(File_thumbnail::url($thumbnail->filename));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user