Uploaded image for project: 'Zeta Components'
  1. Zeta Components
  2. ZETACOMP-99

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • MvcTools

    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.

      Attachments

        1. cache_control.patch
          2 kB
          Eero Niemi

        Activity

          People

            Unassigned Unassigned
            eero 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