XF 1.4 Serving Proxy.php via CDN

Since this is no static file it makes no sense to serve it from a CDN.

But you can install another XF instance at another server connected with the same database and rum proxy.php from there.

I think you would need a second XF license if you do this.
 
Nope. It redirects to different URLs or renders images.

That isn't a static file. The content outputted changes.

But it's keyed on the parameters... if the parameters don't change, the content doesn't change. Is this exact url supposed to ever return anything but that exact image?

Code:
https://xenforo.com/community/proxy.php?image=http%3A%2F%2Fcdn.macrumors.com%2Farticle-new%2F2014%2F09%2Fapplepaytouchid.jpg&hash=d923287690c8e09303e9c46cb1ca6b43

arn
 
It doesn't just pull the image. It does logging and other validation. There are things that can be done to make it not return an image.

The proxy URL is controlled by a function in the base BB code renderer. That would have to be extended to change the URL.
 
It doesn't just pull the image. It does logging and other validation. There are things that can be done to make it not return an image.

The proxy URL is controlled by a function in the base BB code renderer. That would have to be extended to change the URL.

Ah, ok. so will we run into problems if we try to cache proxy.php externally?

There are other scenarios this could impact, such as varnish and lite speed caches.

arn
 
Well it's really up to you; it's hard for me to comment on what a CDN/cache would do as there are likely a lot of tuning options. It will probably work, but you'd likely be bypassing some of the work that file does which may trigger other things (eg, minimal logging information, not thinking the image is being accessed so pruning it and then needing to refetch it, potentially not refetching it based on the XF options).
 
Back
Top Bottom