Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15450

Browser cache for attachments is never invalidated (needs browser clear cache)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 11.3-rc-1
    • 10.5
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      We currently have no way of invalidating the browser's cache for attachments that have changed (uploaded a new version with the same name). The Attachment URL stays the same, so the browser does not know when to download a new version.

      We could use one for the 2 options:

      Nice Guide on both options: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching

      Note that we are already using the cache buster technique for JSX and SSX resources, to force client cache invalidations whenever they are changed.

      Also, the Skin action could benefit from such an improved cache control for a better response to XWiki updates or to customizations done on the server.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: