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

Browser caches a resource (pdf) because of Cache control on link to resource in cms

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.2.0
    • None
    • None
    • Flagged
    • Quasar
    • Puma Sprint 229

    Description

      We have a compound field resource in a documenttype.
      The document in the cms shows a link to retrieve the attached resource (a pdf)
      The url of the link looks like: https://cms.companyABC.nl/?1-IResourceListener-root-tabs-panel~container-cards-2-panel-center-tabs-panel~container-cards-*ID_NR*-panel-editor-extension.editor-template-extension.left-view-3-item-view-1-item-cmp-view-1-item-fragment-link
      The ID_NR starts at zero at every login.
      So the second login, the same url is shown, even if it points to a different pdf.

      Because the Cache control has a max-age of 31536000, the browser is keen enough to cache the pdf and shows this pdf without the need to download it again.

      Sadly, the url actually represents a different pdf, so the editor gets the wrong pdf.

      So, the cache control should be set to no-Cache, so the current pdf is downloaded.

      Attachments

        Issue Links

          Activity

            People

              ntrajkovski Nikola Trajkovski
              rvanwijngaarden Rob van Wijngaarden
              Hippo Helpdesk Hippo Helpdesk
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: