Direct public URLs are missing cache buster

Kirby

Well-known member
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()
 
Back
Top Bottom