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

Browser cache for attachement is not invalidated on rollback

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 11.3-rc-1
    • Attachments
    • None
    • Unknown

    Description

      Reproductions steps

      1. create a page
      2. upload attachment a.txt with content "Version 1"
      3. check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1) this is "Version 1"
      4. delete a.txt
      5. upload attachment a.txt with content "Version 2"
      6. check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1) this is "Version 2"
      7. rollback to the document revision where a.txt with content "Version 1" was just uploaded
      8. check the content of the attachment (e.g., http://localhost:8080/xwiki/bin/download/AttachmentTest4/WebHome/a.txt?rev=1.1)

      Expected

      The content of the attachment is "Version 1"

      Actual

      The content of the attachment is "Version 2"

      Explanations

      With a hard refresh (Ctrl+Maj+R), the content of the attachment is correctly "Version 1", meaning that there is a browser cache invalidation issue.
      But, we probably have a mechanism to invalidate the cache as other with attachment content check would already fail right after the check of the attachment content after the second upload.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: