Defining max-age to Cache-Control -headers more intuitively
-----------------------------------------------------------

                 Key: ZETACOMP-99
                 URL: https://issues.apache.org/jira/browse/ZETACOMP-99
             Project: Zeta Components
          Issue Type: New Feature
          Components: MvcTools
            Reporter: Eero Niemi
            Priority: Trivial
         Attachments: cache_control.patch

I tried to get max-age=0 to Cache-Control -header, and my first attempt was:

$controls = array ('no-cache',  'must-revalidate', 'no-store', 'max-age' => 0);

Resulting headers were: 

Cache-Control: no-cache, must-revalidate, no-store, 0

Proper result can be achieved by using 'max-age=0' as value, but I think that 
it might be good to support key-value pairs also.
 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to