On Wednesday 13 March 2002 10:43 am, Chuck Esterbrook wrote: > I just looked at my apache access_log and all the requests for the > style sheet are GET and POST. No HEAD: > > 68.5.28.172 - - [13/Mar/2002:13:23:12 -0500] "GET /StyleSheet.css > HTTP/1.1" 200 10928 > > > I was expecting HEAD for StyleSheet.css since it is just a static > file being served by UnknownFileTypeServlet. > > A grep for HEAD reveals no more HEAD requests after March 5th. And > the few HEADs that occurred were for anything but the StyleSheet. > This adds 10K per request and will slow down my app server.
Okay, the deal is that the GET from modern browsers is accompanied by an If-Modified-Since header (so they don't bother with HEAD). I checked this out using Mozilla, Apache and a static .html file served directly. The requests are always GET, but the subsequent responses return 0 bytes of document. Having dumped the attrs of HTTPRequest, I don't see that it has access to that information, or even the request headers in general. I also don't find any source code in webware referencing "modified" and "since" in the same line. I presume that we can somehow get this out of mod_webkit, but I don't know about CGI. I'll investigate further tonight. -Chuck _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
