When I was developing cache appliances returning a full page on a HEAD would crash some engines, but that was considered a 'bug'. We tested malformed responses and one of them was to send a full page in response to a HEAD.
It should be OK, but I would rather see some type of class method such as setCacheProperties() where you could set both cache headers - to tell how long a browser/cache should hold the doc Then you could use this method to form a response to a HEAD. The project I am working on now will almost certainly be accessed through a proxy cache, so I'll have to examine this at some point. Thanks, -Aaron http://www.MetroNY.com ----- Original Message ----- From: "Love, Jay" <[EMAIL PROTECTED]> To: "'Chuck Esterbrook'" <[EMAIL PROTECTED]>; "Jeff Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 12, 2001 8:53 AM Subject: RE: [Webware-devel] What is REQUEST_METHOD HEAD? > Yeah, I've has this in the back of my head for a while that we need to > handle these. We should just map it to the standard GET handler for now, I > think. I don't think it'll do any damage to send a body in response, but > someone should verify that. > > Jay > > > -----Original Message----- > > From: Chuck Esterbrook [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, October 11, 2001 11:53 PM > > To: Jeff Johnson; [EMAIL PROTECTED] > > Subject: Re: [Webware-devel] What is REQUEST_METHOD HEAD? > > > > > > At 11:17 PM 10/11/2001 -0400, Jeff Johnson wrote: > > >Here's a new one. What is a REQUEST_METHOD = HEAD? Isn't > > that just GET > > >or POST? > > > > It's like a GET, but it only wants the timestamp in return. > > Browsers will > > ask for a HEAD if they are caching a copy of the document in > > the hope that > > they don't need to get another copy. But I think you said you > > were setting > > the pages to always expire, so no browser should be asking for this. > > > > Obviously one is, so you'd probably want to return the > > current date and > > time, which should be greater than the date and time you vended the > > document. Perhaps add some time (like a minute) to guarantee that. > > > > You'll want to double check the HTTP RFC for the definition > > of HEAD. I'm > > speaking from distant memory. > > > > Since WebKit pages are always derived, perhaps Page should > > default to the > > behavior I described. For applications whose pages really do > > stay the same > > over some period of time, the Page author could override this > > behavior. > > > > Opinions? > > > > > > -Chuck > > > > > > _______________________________________________ > > Webware-devel mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/webware-devel > > > > > ---------------------------------------------------------------------------- > > This e-mail and any attachments may be confidential or legally privileged. > If you received this message in error or are not the intended recipient, you > should destroy the e-mail message and any attachments or copies, and you are > prohibited from retaining, distributing, disclosing or using any information > contained herein. Please inform us of the erroneous delivery by return > e-mail. > > Thank you for your cooperation. > > ---------------------------------------------------------------------------- > > > > _______________________________________________ > Webware-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-devel _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
