View Single Post
Old 16-03-2004, 15:41   #31
mr-b
Inactive
 
Join Date: Jan 2004
Location: Warwickshire
Posts: 53
mr-b is an unknown quantity at this point
Re: Simple view on how proxies work (inc DNS)

Quote:
Originally Posted by SMHarman
Http also has a HEAD command and a GET command. GET asks for the whole page, HEAD asks for the headers, which can be used to compare to the cached headers. Head uses a lot less bandwidth as a result.
Correct - but there's a way of using even less bandwidth.

If you issue an HTTP GET and also include an If-Modified-Since header then the web server will only send you the object if it has been modified since the date that you specified. If it hasn't, it replies with HTTP/1.1 304 Not Modified and then you can mark your content as being fresh again having only transferred a few bytes.

You can view this in a trace by seeing lots of 304 responses typically coming back after you hit browser Refresh.

But now we're getting away from the 'simple' aspect of this thread ...
mr-b is offline   Reply With Quote