Hi,
Tried lots of things last night and today. Still same prob.
I am using Netscape 4.7
I notice that 4.7 will load the gif with shift-reload but
Netscape 4.05 will not load the more up-to-date gif even
with shift-reload.
chesty wrote:
> > > See if anyone has any ideas on the headers-for-images thing, otherwise you
> > > might just have to hack in some temp filenames for the time being.
I may be forced to go that way!
> > MRTG (Multi Router Traffic Grapher) runs into this same problem. Their
> > way of solving it was to write 'filename.meta' data out at the same time
> > as the .gif image.
> > This file contains a line like:
> > Expires: Thu, 25 May 2000 23:00:31 GMT
> > and .....such as the following lines
> > in access.conf:
> > <Directory /usr/local/apache/share/htdocs/mrtg>
> > MetaSuffix .meta
> > </Directory>
I don't really follow how try this suggestion. Yes there is
a section in httpd.conf but what would this .meta file
contain?
> first get rid of file:/// and use http://, apache doesn't
> seem to generate [many] http headers when using file:///
Actually had to as otherwise remote machines can't get the
image via file://
> The way I did it was.
> in the <Directory /var/www> part of apache config add
I don't have /var/www.
I placed these into the <Directory /home/mikel/public_html>
section:
> ExpiresActive On
> ExpiresByType image/gif A-999999
> # roughly 12 days in the past, to be sure to be sure.
Gif still cached.
> But I like the MRTG way better.
Um. This is a real nutty prob. Netscape appears to be
ignoring the http nocache headers.
I have pruned down the script to the min which recreates the
prob and it is included below my sig. If anyone wants to try
it you may not have plot or graph installed and you won't
have a data file but you can prob make some replacement.
Notice I sent a parameter $Ao to the graph title so I could
see if it was the latest or not.
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02
9514 1628
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------
#!/usr/bin/perl
use CGI qw/:standard/; # load CGI routines
my $now = gmtime;
$q = new CGI; # create new
CGI object
print $q->header( # create the
HTTP header
-type=>'text/html',
-expires=>'+30s',
-pragma=>'no-cache',
-last_modified=>"$now",
-cache_control=>'no-cache');
print $q->start_html('Test CGI'), # start the HTML
$q->h1('Test CGI'); # level 1 header
print $q->startform("GET","testCGI-2");
print $q->textfield(-name=>'Ao',
-default=>'20',
-override=>0,
-size=>5,
-maxlength=>5),p;
print $q->submit(-name=>'button_name',
-value=>' Start ');
# If script invoked for the first time there will be no
parameters.
# So dont show any results.
if (param()) {
$Ao = param('Ao');
print "Value was: ", param('Ao'), " at ",$now, p;
# Create graph. -L makes the Label.
system("/usr/local/bin/graph -L 'Test gif $Ao'
/home/mikel/public_html/tmp/data >|
/home/mikel/public_html/tmp/temp.meta");
system("/usr/local/bin/plot -T gif --bitmap-size
300x300 /home/mikel/public_html/tmp/temp.meta >|
/home/mikel/public_html/tmp/order1.gif");
print $q->img({-expires=>'+30s',
-pragma=>'no-cache',
-cache_control=>'no-cache',
-last_modified=>"$now",
-src=>'http://b4114a/~mikel/tmp/order1.gif'});
}
else
{
print "First run at ", $now;
}
print $q->endform;
print $q->end_html; # end the HTML
######################################################################
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text