From f84a416239a88889d1719cb1bbed0488a1eeacb8 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 4 Jun 2023 10:57:26 +0100 Subject: [PATCH] Fix header() invocation --- robots-txt-cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robots-txt-cache.php b/robots-txt-cache.php index ef4a6aa..5cab1e8 100644 --- a/robots-txt-cache.php +++ b/robots-txt-cache.php @@ -8,7 +8,7 @@ */ function ai_robots_txt_add_cache_headers() { - header("Cache-Control", "max-age=86400"); + header("Cache-Control: max-age=86400"); } add_action('do_robotstxt', 'ai_robots_txt_add_cache_headers'); -- GitLab