diff --git a/redirect.module b/redirect.module
index dfbe029..12e39ee 100644
--- a/redirect.module
+++ b/redirect.module
@@ -982,7 +982,9 @@ function redirect_goto($redirect) {
     if (variable_get('cache', 0)) {
       // We must output something to allow the request to be cached.
       echo ' ';
-      drupal_page_set_cache();
+      if ($cache = drupal_page_set_cache()) {
+        drupal_serve_page_from_cache($cache);
+      }
     }
   }
 
