[
https://issues.apache.org/jira/browse/ZETACOMP-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eero Niemi updated ZETACOMP-99:
-------------------------------
Attachment: cache_control.patch
Patch to support key=value in Cache-Control headers. Test included.
> 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
> Labels: header, http
> Attachments: cache_control.patch
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> 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