Ver código fonte

Add cache headers to graphs

Closes #36
tags/SensorLogger/0.2.0
Chris Smith 14 anos atrás
pai
commit
847adcc7bc
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      website/data.php

+ 2
- 0
website/data.php Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar