I want to ensure that the page is not downloaded unless absolutely necessary... not ensure that every request sends unnecessary data!
I expected that Apache would handle the conditional request if I supplied the correct headers, but it appears not.... unless I've missed somthing.
I don't really relish having to write a conditional request handler myself....
The transaction should look like this:-
GET /testing/etag.php HTTP/1.0
Host: www.fsck.co.uk
User-Agent: CacheabilityEngine/1.30 <http://www.mnot.net/cacheability/>
Accept: /
Pragma: no-cache
Cache-Control: no-cache
If-Modified-Since: Sat, 02 Dec 2000 15:33:14 GMT
Connection: close
HTTP/1.1 304 Not Modified
Date: Sat, 02 Dec 2000 15:35:44 GMT
Server: Apache/1.3.14 (Unix) PHP/4.0.3pl1
Connection: close
ETag: "1c720-28-3a29163a"
NOT, like this:-
GET /testing/etag.php HTTP/1.0
Host: www.fsck.co.uk
User-Agent: CacheabilityEngine/1.30 <http://www.mnot.net/cacheability/>
Accept: /
Pragma: no-cache
Cache-Control: no-cache
If-Modified-Since: Fri, 04 Feb 2000 00:56:36 GMT
Connection: close
HTTP/1.1 200 OK
Date: Sat, 02 Dec 2000 15:26:26 GMT
Server: Apache/1.3.14 (Unix) PHP/4.0.3pl1
X-Powered-By: PHP/4.0.3pl1
Expires: Fri, 04 Feb 2001 00:56:36 GMT
Last-Modified: Fri, 04 Feb 2000 00:56:36 GMT
Cache-Control: public, must-revalidate
Etag: 17627681623866
Content-Length: 40
Connection: close
Content-Type: text/html
<hr>
This is a test
<hr>