Disable Cache for generated Images
authorJoachim Breitner <mail@joachim-breitner.de>
Sat, 27 Jun 2009 09:52:11 +0000 (11:52 +0200)
committerJoachim Breitner <mail@joachim-breitner.de>
Sat, 27 Jun 2009 09:52:11 +0000 (11:52 +0200)
web/php/PlantImages.php

index 0705106..12c944d 100644 (file)
                        // 1 => Lesehandle, das auf das Child STDOUT verbunden ist
                        // Jedwede Fehlerausgaben werden an /tmp/error-output.txt angefĆ¼gt
                        header("Content-type: image/png");
+                       header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
+                       header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
+                       header( "Cache-Control: no-cache, must-revalidate" );
+                       header( "Pragma: no-cache" );
+
 
                        fwrite($pipes[0], $plant->Code);
                        fclose($pipes[0]);