W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2009

BNF for Cache-Control

From: Adrien de Croy <adrien@qbik.com>
Date: Sun, 24 May 2009 15:17:00 +1200
Message-ID: <4A18BC2C.6000602@qbik.com>
To: HTTP Working Group <ietf-http-wg@w3.org>

the production for Cache-control seems to imply that any cache control 
header can contain any number of cache-request-directive or 
cache-response-directive.  This means a mixture of both is permissible.

    Cache-Control = "Cache-Control" ":" 1#cache-directive
    cache-directive = cache-request-directive | cache-response-directive

Is this intended?  Surely cache-response-directive are only valid for 
responses, and cache-request-directive for requests?

I would have expected something more like:

    Cache-Control = "Cache-Control" ":" cache-control-request | 
cache-control-response
    cache-control-request = 1#cache-request-directive
    cache-control-response = 1#cache-response-directive

to enforce separation.

Apologies if this is already covered in HTTPbis

Regards

Adrien

-- 
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com
Received on Sunday, 24 May 2009 03:14:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:03 GMT