From: Martin Sarsale <martin.sarsale@gm...> - 2005-02-11 12:01:50
The other days, I was reading about how PHP handles HEAD requests.
HEAD requests are used to know if:
a) a file exists
b) what headers would return if the client ask for it with a GET request
The problem is that PHP doesn't mind if it's a GET or HEAD request and
runs the whole script (but AFAIK return only the headers). IMHO, this
solution works but it's not efficient.
I've grepped my logs and found that the only clients that use the HEAD
request are the RSS readers. I think we could start with tiki-rss.php
and add support for HEAD requests, sending only the Last-modified date
(Im not sure if we're sending it right now).
Im courious about what clients send HEAD requests, would you mind
grepping thru your access.log and paste if you find a non rss request?
Martin Sarsale - martin@...
Get latest updates about Open Source Projects, Conferences and News.