BNF for Cache-Control

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 UTC