Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21406

Improve client performance by enabling HTTP caching for i18n REST resources

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      REST i18n resources are generally derived from static information inside plugins and are unlikely to change very often. We should use our short-term public caching headers for them instead of not specifying any caching headers.

      That is, we need to change these lines:

      httpContext.getResponse().setHeader("Cache-Control", "");
      httpContext.getResponse().setHeader("Pragma", "");
      httpContext.getResponse().setHeader("Expires", "");
      

      to this:

      CachingHeaders.PUBLIC_SHORT_TERM.apply(httpContext.getResponse());
      

      In addition, we should probably configure the REST caching consistently in our central caching filter, rather than having custom handling in the plugin.

              matt@atlassian.com Matt Ryall
              matt@atlassian.com Matt Ryall
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: