Просмотр исходного кода

Add cache headers to graphs

Closes #36
tags/SensorLogger/0.2.0
Chris Smith 14 лет назад
Родитель
Сommit
847adcc7bc
1 измененных файлов: 2 добавлений и 0 удалений
  1. 2
    0
      website/data.php

+ 2
- 0
website/data.php Просмотреть файл

@@ -66,6 +66,8 @@
66 66
    $lastx = $x; $lasty = $y; $lastz = $z;
67 67
   }
68 68
 
69
+  header('Expires: ' . date(DateTime::RFC822, strtotime('+10 years')));
70
+  header('Cache-control: public');
69 71
   header('Content-type: image/png');
70 72
   imagecolortransparent($im, $w); 
71 73
   imagepng($im);

Загрузка…
Отмена
Сохранить