Fixed Direct public URLs are missing cache buster

Kirby

Well-known member
Licensed customer
Affected version
2.3.6
Due to the changes implemented for https://xenforo.com/community/threads/image-optimization-cli-commands-break-existing-content.220691/ direct public URLs for attachments don't change even if their content changes (and thus file_hash) changes.

This may cause outdated versions being used from browser or intermedia / CDN caches if they can be accessed via a direct URL - which by default is the case for audio & video attachments.

Suggested Fix
Add a cache-buster query string in XF\Entity\AttachmentData::getPublicUrl() like it was done for XF\Entity\AttachmentData::getThumbnailUrl()
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.8).

Change log:
Include a cache buster on direct attachment URLs
There may be a delay before changes are rolled out to the XenForo Community.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.8).

Change log:
Include a cache buster on direct attachment URLs

There may be a delay before changes are rolled out to the XenForo Community.
Should we be seeing this in 2.3.13? 🤔
 
Back
Top Bottom