1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Serving Proxy.php via CDN

Discussion in 'XenForo Questions and Support' started by arn, Dec 29, 2014.

  1. arn

    arn Active Member

  2. HWS

    HWS Well-Known Member

    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.
  3. arn

    arn Active Member

    Not sure I agree with that. And it is ultimately a static file.

  4. Liam W

    Liam W Well-Known Member

    Nope. It redirects to different URLs or renders images.

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

    arn Active Member

    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?

  6. Mike

    Mike XenForo Developer Staff Member

    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.
  7. arn

    arn Active Member

    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.

  8. Mike

    Mike XenForo Developer Staff Member

    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).

Share This Page