Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14893

Updated binaries not visible in site due to Cache-Control: immutable

    XMLWordPrintable

Details

    • Flagged
    • Quasar
    • Team Quasar sprint 278

    Description

      When an asset or an image is updated from the CMS using Edit-button, changes are not reflected on the site.

      This is due to the Cache-Control: immutable that was added in CMS-13275 to
      13.4.4, 14.3.0 and SaaS, in method org.hippoecm.hst.servlet.utils.HeaderUtils.setExpiresHeader, used by BinariesServlet.

      The browser cache will not ever be updated while it's fresh (within max-age)/
      See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

      Reproduction
      To confirm caused by CMS-13275, I could reproduce on 14.7 but not on 14.2, by uploading a pdf, then use Edit to upload a different one. Accessing BinariesServlet doesn't see the change.

      Attachments

        Issue Links

          Activity

            People

              jhoffman Jeroen Hoffman
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: