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-request = 1#cache-request-directive
    cache-control-response = 1#cache-response-directive

to enforce separation.

Apologies if this is already covered in HTTPbis



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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:49 UTC