summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-22 16:58:38 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-22 16:58:38 +0000
commitfd68fbf3364faf0ef72b4a717e891743c17e9f27 (patch)
tree2ab4ae5a794e6d516dc036f59c5d799466e0ee80
parentaf63ef618032bc13637167e74bc6c3ae19693cd8 (diff)
disabled img caching
git-svn-id: file:///var/lib/svn/phpfspot/trunk@245 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--phpfspot_img.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpfspot_img.php b/phpfspot_img.php
index a96d5e6..5747b73 100644
--- a/phpfspot_img.php
+++ b/phpfspot_img.php
@@ -62,7 +62,7 @@ class PHPFSPOT_IMG {
$details = $this->parent->get_photo_details($idx);
if(!$details) {
- $this->parent->showTextImage("The image you requested is unknown");
+ $this->parent->showTextImage("The image (". $idx .") you requested is unknown");
return;
}
@@ -106,7 +106,10 @@ class PHPFSPOT_IMG {
Header("Content-Disposition: inline; filename=\"". $details['name'] ."\"");
Header("Accept-Ranges: bytes");
Header("Connection: close");
-
+ Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+ Header("Cache-Control: no-cache");
+ Header("Pragma: no-cache");
+
$file = fopen($fullpath, "rb");
fpassthru($file);
@fclose($file);