Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13938

Public API does not set any HTTP caching headers

    Details

      Description

      Public API does not have a mechanism to set HTTP caching headers - and no default values are set.

      See SHA-727.

      This is hugely important in modern web-application developer where the focus is on single-page apps making multiple requests to the same XHR call for data e.g. refreshing lists after an update - without refreshing the whole page.

      Some browsers - all versions of IE from 6+ for example - aggressively cache XHR requests to the same URL. This means a modern single page application that makes multiple requests to the Alfresco public API will have to resort to hacks like adding nonce values to a URL to force the browser to re-query the data. Also, if the cache headers are not set correctly - proxy servers in the middle between Alfresco and a client could also aggressively cache identical URL requests.‚Äč

      I suggest finish the implementation to set a Cache object value and add an annotation for it to allow developers to set explicit values other than the default (which I suggest is set to "no-cache") for implementations that require it like say dated Content retrieval.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  kroast Kevin Roast [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 30 minutes
                    1h 30m

                      Structure Helper Panel