Hi Again,
These are great ideas. I'm learning lots.
chesty wrote:
> #!/usr/bin/perl
> use CGI;
>
> my $q = new CGI;
> my $now = gmtime;
> my $etag = time()
etc.........
> $q->img({-expires=>'+30s',
> -pragma=>'no-cache',
> -cache_control=>'no-cache',
> -last_modified=>"$now",
> -etag=>"$etag",
> -src=>'file:///tmp/test.gif'}),
> $q->end_html;
>
> I have no idea if they are valid img headers.
Well Netscape doesn't barf. I suspect that if it can't
understand an attribute it ignores it.
I've implemented the img part of this and the time variables
in my code as above and the cgi script gives a doc with this
in it:
<IMG LAST-MODIFIED="Thu May 25 09:19:59 2000"
CACHE-CONTROL="no-cache"
SRC="file:///home/mikel/public_html/tmp/order1.gif"
PRAGMA="no-cache" EXPIRES="+30s" ETAG="959246399">
I got the doc to print the var $now to the browser to check
that the time is got and the browser shows a different time
each time the submit button is clicked. So all seems fine.
But still gif doesn't change. I can make it update only by
holding shift while clicking the reload button.
> Have a look at http://www.web-caching.com/mnot_tutorial/
Will do.
It definately seems like a caching problem.
ie code in Netscape that says
"For all situations/users etc CACHE all images"
Mike
--------------------------------------------------------------------
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.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text