You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When purging an entry URL on save or a specific URL from the dashboard widget, I'm encountering an "Invalid URL" error.
It is throwing on zones with domains that are more than one level eg. www.example.org.au/path/to/something. The URLHelper is cutting these URLs down to 'org.au' and comparing that to the registrable domain 'example.org.au', which always fails the isPurgeableUrl check.
The most reliable way of determining the registrable domain is by using the Public Suffix List. I've made a pull request with a plugin that extracts domains using a cached public list.
Thanks for a great plugin!
The text was updated successfully, but these errors were encountered:
I am seeing similar behavior when trying to purge www.example.com/path/to/something and but the Plugin throws a Ignoring URL outside zone error.
Looking into it, the comparison between the $urlDomain and the $cfDomainName provided by the UrlHelper yields a comparison between example.com and www.example.com (from my Zone) which never match.
If I essentially ignore that check, my purges go through perfectly. Alternately, I was able to throw the zoneName into the config.php file and voila. Our zone name is a three part URL (www.example.com) because it's part of a larger account with other zones based on example.com
When purging an entry URL on save or a specific URL from the dashboard widget, I'm encountering an "Invalid URL" error.
It is throwing on zones with domains that are more than one level eg.
www.example.org.au/path/to/something
. The URLHelper is cutting these URLs down to 'org.au' and comparing that to the registrable domain 'example.org.au', which always fails theisPurgeableUrl
check.The most reliable way of determining the registrable domain is by using the Public Suffix List. I've made a pull request with a plugin that extracts domains using a cached public list.
Thanks for a great plugin!
The text was updated successfully, but these errors were encountered: