How do XenForo attachment URL redirects work?

Amin Sabet

Well-known member
With an attachment like this:

Code:
https://www.mu-43.com/attachments/k6bybbs-jpg.488000/

Does XenForo redirect that to this:

Code:
https://www.mu-43.com/attachments/488000/

?

And then does it get redirected again to something else? Because I can't find either of those files referenced above on my server.

I'd like to get an understanding of this so that I can get help with some ngx-pagespeed handling of attachments.
 
Iirc, there are two cross references which maps the id of the attachment to the random file name which is generated when they are stored.
 
It sounds like it's not going to be easy to get Pagespeed working with attachments unless I use that [bd] addon I don't want to use...

On the other hand, this workaround to add an image extension to attachment URLs may be a good way to get Cloudflare features like Mirage to optimize attachment delivery.
 
Top Bottom