diff --git a/theme/image.php b/theme/image.php index 99af6c3433e..244ee43f08a 100644 --- a/theme/image.php +++ b/theme/image.php @@ -167,6 +167,10 @@ if (!$usesvg) { } send_uncached_image($imagefile); exit; + } else { + /* We cannot serve the SVG file this time and there is no alternative, so prevent future + requests from failing to find the image when they can support SVG. */ + image_not_found(); } } }