wrote:
> My question is can we (and should we) include a content-length META
> tag in the HEAD element or can we only insert a content-length header
> through some server language such as ASP/JSP/PHP/Perl etc?
With dynamically generated pages (ASP/JSP/PHP/Perl/etc) you generally
don't know the Content-Length in advance.
With statically served files, most web servers (tested IIS and Apache)
seem to insert the Content-Length for you.
This leaves only gateway-type CGI files -- for example, some kind of
download.cgi script that checks various authorisation variables,
increments hit counters or whatever before sending the user a file.
This is pretty easy to do. For example, with Perl:
print 'Content-Length: ', (-s $file), "\n";'
Of course, setting a META tag is more difficult as the tag itself
will change the file size!
--
Toby A Inkster BSc (Hons) ARCS
Contact Me -
http://www.goddamn.co.uk/tobyink/?page=132