Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20172

Make REST HTTP cache aware with Location ID expiry

    Details

    • Epic Link:
    • Sprint:
      Ventoux Sprint 1, Ventoux Sprint 2, Ventoux Sprint 3

      Description

      The REST MVC controllers should be modified in order to send the correct cache headers so that reverse proxies can be transparently used, like it is done in eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::buildResponse()

        Issue Links

          Activity

          Bertrand Dunogier created issue -
          André Rømcke made changes -
          Field Original Value New Value
          Workflow eZ Community Workflow [ 35072 ] eZ Engineering Scrumban Workflow [ 35725 ]
          André Rømcke made changes -
          Status Open [ 1 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Epic Link PM-69 [ 32100 ]
          André Rømcke made changes -
          Link This issue relates to PM-60 [ PM-60 ]
          André Rømcke made changes -
          Link This issue relates to EZP-20215 [ EZP-20215 ]
          André Rømcke made changes -
          Fix Version/s Future [ 11071 ]
          Fix Version/s 5.1 [ 11280 ]
          André Rømcke made changes -
          Sprint Ventoux Sprint 1 [ 21 ]
          André Rømcke made changes -
          Rank Ranked lower
          André Rømcke made changes -
          Remaining Estimate 3 days [ 86400 ]
          André Rømcke made changes -
          Original Estimate 3 days [ 86400 ]
          Bertrand Dunogier logged work - 12/Dec/13 10:09 AM
          • Time Spent:
            4 hours
             

            .

          Bertrand Dunogier logged work - 12/Dec/13 11:23 AM
          • Time Spent:
            3 hours
             

            .

          Bertrand Dunogier made changes -
          Status Backlog [ 10000 ] Development [ 3 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ]
          Bertrand Dunogier made changes -
          Remaining Estimate 3 days [ 86400 ] 2 days, 4 hours [ 72000 ]
          Time Spent 4 hours [ 14400 ]
          Worklog Id 43593 [ 43593 ]
          Bertrand Dunogier logged work - 13/Dec/13 11:23 AM
          • Time Spent:
            1 day
             

            .

          Bertrand Dunogier made changes -
          Remaining Estimate 2 days, 4 hours [ 72000 ] 2 days, 1 hour [ 61200 ]
          Time Spent 4 hours [ 14400 ] 7 hours [ 25200 ]
          Worklog Id 43644 [ 43644 ]
          Bertrand Dunogier made changes -
          Remaining Estimate 2 days, 1 hour [ 61200 ] 1 day, 1 hour [ 32400 ]
          Time Spent 7 hours [ 25200 ] 1 day, 7 hours [ 54000 ]
          Worklog Id 43645 [ 43645 ]
          Hide
          Bertrand Dunogier added a comment -

          Pull-request: ezpublish-kernel-659.

          Show
          Bertrand Dunogier added a comment - Pull-request: ezpublish-kernel-659 .
          Bertrand Dunogier made changes -
          Remote Link This issue links to "PR #ezpublish-kernel-659 (Web Link)" [ 12956 ]
          Bertrand Dunogier made changes -
          Remaining Estimate 1 day, 1 hour [ 32400 ] 2 days [ 57600 ]
          André Rømcke made changes -
          Rank Ranked higher
          Bertrand Dunogier made changes -
          Issue Type Bug [ 1 ] Story [ 7 ]
          André Rømcke made changes -
          Sprint Ventoux Sprint 1 [ 21 ] Ventoux Sprint 1, Ventoux Sprint 2 [ 21, 22 ]
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Rank Ranked higher
          André Rømcke made changes -
          Remaining Estimate 2 days [ 57600 ] 2 hours [ 7200 ]
          André Rømcke made changes -
          Sprint Ventoux Sprint 1, Ventoux Sprint 2 [ 21, 22 ] Ventoux Sprint 1, Ventoux Sprint 2, Ventoux Sprint 3 [ 21, 22, 24 ]
          André Rømcke made changes -
          Rank Ranked higher
          Bertrand Dunogier logged work - 09/Jan/14 9:58 PM
          • Time Spent:
            4 hours
             
            <No comment>
          Bertrand Dunogier made changes -
          Remaining Estimate 2 hours [ 7200 ] 0 minutes [ 0 ]
          Time Spent 1 day, 7 hours [ 54000 ] 2 days, 3 hours [ 68400 ]
          Worklog Id 44586 [ 44586 ]
          Bertrand Dunogier made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Affects Version/s 5.2 [ 12582 ]
          Affects Version/s 5.1 [ 11280 ]
          Affects Version/s 5.0 [ 10300 ]
          Fix Version/s 5.3 [ 11282 ]
          Fix Version/s Future [ 11071 ]
          Bertrand Dunogier logged work - 20/Jan/14 3:46 PM
          • Time Spent:
            3 hours
             
            <No comment>
          Bertrand Dunogier made changes -
          Time Spent 2 days, 3 hours [ 68400 ] 2 days, 6 hours [ 79200 ]
          Worklog Id 44948 [ 44948 ]
          Bertrand Dunogier made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Hide
          Bertrand Dunogier added a comment -

          Merged to master

          Show
          Bertrand Dunogier added a comment - Merged to master
          Bertrand Dunogier made changes -
          Summary Make REST HTTP cache aware Make REST HTTP cache aware with Location ID expiry
          Bertrand Dunogier made changes -
          Link This issue relates to EZP-22203 [ EZP-22203 ]
          Bertrand Dunogier made changes -
          Status Development Review done [ 10028 ] Development Acceptance Done [ 10030 ]
          Bertrand Dunogier made changes -
          Status Development Acceptance Done [ 10030 ] Documentation done [ 10011 ]
          Marcos Loureiro (Inactive) logged work - 25/Feb/14 1:00 AM
          • Time Spent:
            3 hours, 30 minutes
             

            Testing

          Marcos Loureiro (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Bertrand Dunogier [ bertrand.dunogier@ez.no ] Marcos Loureiro [ marcos.loureiro@ez.no ]
          Hide
          Bertrand Dunogier added a comment -

          It is the expected behaviour. An unpublished version doesn't have a location, and this story is only about items that can be cached (and expired) based on a location id.

          Show
          Bertrand Dunogier added a comment - It is the expected behaviour. An unpublished version doesn't have a location, and this story is only about items that can be cached (and expired) based on a location id.
          Hide
          Bertrand Dunogier added a comment -

          No, it's a redirect. So far, we don't cache redirects.

          Show
          Bertrand Dunogier added a comment - No, it's a redirect. So far, we don't cache redirects.
          Hide
          Marcos Loureiro (Inactive) added a comment - - edited

          Note:
          For requests with path (like /user/groups/<path>)
          it will have different cache for the same object if we put the "/1" or not, example:
          The next request will have different caches

          GET /user/groups/5/12
          GET /user/groups/1/5/12 
          

          Probably this is known and it's the expected behavior.

          Show
          Marcos Loureiro (Inactive) added a comment - - edited Note: For requests with path (like /user/groups/<path>) it will have different cache for the same object if we put the "/1" or not, example: The next request will have different caches GET /user/groups/5/12 GET /user/groups/1/5/12 Probably this is known and it's the expected behavior.
          Marcos Loureiro (Inactive) logged work - 26/Feb/14 1:34 PM - edited
          • Time Spent:
            7 hours, 30 minutes
             

            Testing
            Automating test

          Hide
          Bertrand Dunogier added a comment -

          No, it's not really "known". It is cached because there is a response. The issue is that there is a response, not that it is cached. We have the same issue on locations (EZP-22055). Can you edit the issue and say that /user/groups is affected as well ?

          Show
          Bertrand Dunogier added a comment - No, it's not really "known". It is cached because there is a response. The issue is that there is a response, not that it is cached. We have the same issue on locations ( EZP-22055 ). Can you edit the issue and say that /user/groups is affected as well ?
          Hide
          Marcos Loureiro (Inactive) added a comment -

          Yes of course.
          It's done.

          Show
          Marcos Loureiro (Inactive) added a comment - Yes of course. It's done.
          Marcos Loureiro (Inactive) logged work - 27/Feb/14 1:35 PM
          • Time Spent:
            4 hours, 30 minutes
             

            Automating test
            Designing test case

          Marcos Loureiro (Inactive) made changes -
          Time Spent 2 days, 6 hours [ 79200 ] 3 days, 5 hours, 30 minutes [ 106200 ]
          Worklog Id 45965 [ 45965 ]
          Marcos Loureiro (Inactive) made changes -
          Worklog Id 45965 [ 45965 ]
          Marcos Loureiro (Inactive) made changes -
          Time Spent 3 days, 5 hours, 30 minutes [ 106200 ] 4 days, 2 hours [ 122400 ]
          Worklog Id 45966 [ 45966 ]
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved
          Marcos Loureiro (Inactive) made changes -
          Assignee Marcos Loureiro [ marcos.loureiro@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Marcos Loureiro (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Marcos Loureiro (Inactive) made changes -
          Time Spent 4 days, 2 hours [ 122400 ] 4 days, 5 hours, 30 minutes [ 135000 ]
          Worklog Id 45991 [ 45991 ]
          Marcos Loureiro (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 35725 ] EZ* Development Workflow [ 83354 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 83354 ] EZEE Development Workflow [ 121944 ]
          Alex Schuster made changes -
          Workflow EZEE Development Workflow [ 121944 ] EZEE and EZP Story Workflow [ 127410 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Backlog Backlog
          67d 4h 45m 1 André Rømcke 04/Feb/13 7:57 PM
          Backlog Backlog Development Development
          311d 13h 12m 1 Bertrand Dunogier 13/Dec/13 9:09 AM
          Development Development Development Review Development Review
          27d 12h 49m 1 Bertrand Dunogier 09/Jan/14 9:59 PM
          Development Review Development Review Development Review done Development Review done
          10d 17h 47m 1 Bertrand Dunogier 20/Jan/14 3:46 PM
          Development Review done Development Review done Removed Status Removed Status
          1d 21h 24m 1 Bertrand Dunogier 22/Jan/14 1:11 PM
          Removed Status Removed Status Documentation Review done Documentation Review done
          28d 2h 42m 1 Bertrand Dunogier 19/Feb/14 3:53 PM
          Documentation Review done Documentation Review done QA QA
          5d 23h 59m 1 Marcos Loureiro (Inactive) 25/Feb/14 3:53 PM
          QA QA Closed Closed
          1d 21h 43m 1 Marcos Loureiro (Inactive) 27/Feb/14 1:36 PM
          Closed Closed Reopened Reopened
          1h 49m 1 Marcos Loureiro (Inactive) 27/Feb/14 3:26 PM
          Reopened Reopened Closed Closed
          2s 1 Marcos Loureiro (Inactive) 27/Feb/14 3:26 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Bertrand Dunogier
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 days Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 5 hours, 30 minutes
                4d 5h 30m

                  Agile