Zeta Components
  1. Zeta Components
  2. ZETACOMP-99

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

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Component/s: MvcTools
    • Labels:

      Description

      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.

        Activity

        Hide
        Eero Niemi added a comment -

        Patch to support key=value in Cache-Control headers. Test included.

        Show
        Eero Niemi added a comment - Patch to support key=value in Cache-Control headers. Test included.

          People

          • Assignee:
            Unassigned
            Reporter:
            Eero Niemi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 2h
              2h
              Remaining:
              Remaining Estimate - 2h
              2h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development