From c3673e6143da7434296ae6ca9179c7c4489f589d Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Thu, 9 Aug 2007 23:27:28 +0200
Subject: [PATCH] don't allow export formats in Google index FS#1219

darcs-hash:20070809212728-7ad00-485593f2658fa217f1b70b72d60dd4ef0f59b0c3.gz
---
 inc/actions.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/inc/actions.php b/inc/actions.php
index d3eff18b7..d7c51282f 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -356,6 +356,9 @@ function act_export($act){
   global $ID;
   global $REV;
 
+  // search engines: never cache exported docs! (Google only currently)
+  header('X-Robots-Tag: noindex');
+
   // no renderer for this
   if($act == 'export_raw'){
     header('Content-Type: text/plain; charset=utf-8');
-- 
GitLab