From 0ec7fd64c33bb80abee68e010d34fc588efa70e9 Mon Sep 17 00:00:00 2001 From: sistav Date: Sun, 22 Feb 2026 15:38:05 -0500 Subject: [PATCH] Update index.php --- gif/random/index.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gif/random/index.php b/gif/random/index.php index f5ccaa2..9b87d27 100644 --- a/gif/random/index.php +++ b/gif/random/index.php @@ -2,6 +2,9 @@ $gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif'); if (empty($gif_files)) { http_response_code(404); exit; } -$file = basename($gif_files[array_rand($gif_files)]); +$file = $gif_files[array_rand($gif_files)]; -header('Location: https://sistav.com/assets/gifs/' . rawurlencode($file), true, 302); \ No newline at end of file +header('Content-Type: image/gif'); +header('Content-Length: ' . filesize($file)); +header('Cache-Control: no-store, no-cache, must-revalidate'); +readfile($file); \ No newline at end of file