silverstripe-cloudflare icon indicating copy to clipboard operation
silverstripe-cloudflare copied to clipboard

VOTE: Multi Domain Support

Open zanderwar opened this issue 8 years ago • 3 comments

In some situations (where the "why" is definitely opinionated) people have multiple domains that access the same content e.g

  • mycooldomain.com - MAIN SITE
  • mycooldomain.net - MASK FOR MAIN SITE
  • mycooldomain.org - MASK FOR MAIN SITE

This module currently only supports the domain name it has been accessed from, that means if you access the administration panel via mycooldomain.com then only cache for the .com variant will be dynamically purged by this module.

Whilst you would think that in this situation, if you were to only purge the .com then the .net and .org will also reflect the purge as these domains only mask the original. Sadly that's not how CloudFlare works as it strictly caches the URL as a whole.

This issue is a poll to see if it would even be worth adding support for the above scenario where this module would also purge cache for all of your URL variants.

Please up vote one of the below comments

zanderwar avatar Nov 24 '16 05:11 zanderwar

Yes, I or my client has a similar scenario and adding this feature would help relieve a lot of stress for my client and/or myself

zanderwar avatar Nov 24 '16 05:11 zanderwar

No, neither I or my client would benefit from this feature

zanderwar avatar Nov 24 '16 05:11 zanderwar

Given the above references, I believe there may be a thirdparty, multi-domain extension in the pipeline for this module which would be exceptional in the fact that it doesn't have to be implemented within the base code itself

zanderwar avatar Dec 25 '16 01:12 zanderwar