Update of /cvsroot/phpweather/phpweather
In directory usw-pr-cvs1:/tmp/cvs-serv24609
Modified Files:
data_retrieval.php
Log Message:
Forced cache reload
Index: data_retrieval.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/data_retrieval.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- data_retrieval.php 2001/08/19 12:46:25 1.16
+++ data_retrieval.php 2001/12/19 09:12:46 1.17
@@ -187,7 +187,11 @@
$this->properties['proxy_port']);
if ($fp) {
fputs($fp, 'GET http://weather.noaa.gov/pub/data/' .
- "observations/metar/stations/$icao.TXT HTTP/1.0\r\n\r\n");
+ "observations/metar/stations/$icao.TXT HTTP/1.0\r\n" .
+ "If-Modified-Since: Sat, 29 Oct 1994 09:00:00 GMT\r\n" .
+ "Pragma: no-cache\r\n".
+ "Cache-Contol: no-cache\r\n\r\n");
+
/* We check the status line */
if (strpos(fgets($fp, 1024), '200 ')) {
/* Then we seek until we find the empty line between the
|