TLDs are pulled from https://data.iana.org/TLD/tlds-alpha-by-domain.txt and cached into a tld.json file. TLD changes will be checked for after 24 hours, and Last-Modified headers are used to ignore reading the response body when possible.
Just as a side thought @troyhunt do you have any preference on the scope of storing application files? Currently tld.json writes to the execution location. Would a hidden .data folder, or %AppData% be preferable, or just as is?
This should resolve #40
TLDs are pulled from https://data.iana.org/TLD/tlds-alpha-by-domain.txt and cached into a
tld.json
file. TLD changes will be checked for after 24 hours, andLast-Modified
headers are used to ignore reading the response body when possible.Just as a side thought @troyhunt do you have any preference on the scope of storing application files? Currently
tld.json
writes to the execution location. Would a hidden.data
folder, or%AppData%
be preferable, or just as is?