jsDelivr serves monthly (default) stats much faster than other period options, so I choose to support it only, should be simple & enough for most cases.
jsDelivr serves monthly (default) stats much faster than other period options
This is most likely because we use monthly stats on jsDelivr website so you were hitting Cloudflare cache for most projects. Stats change only once a day so after the first request it should be always fast. I just checked and times for uncached requests are, as expected, proportional to the period, i.e. day is fastest and year slowest (still withing 1 second).
@MartinKolarik Thanks for clarification!
Most helpful comment
This is most likely because we use monthly stats on jsDelivr website so you were hitting Cloudflare cache for most projects. Stats change only once a day so after the first request it should be always fast. I just checked and times for uncached requests are, as expected, proportional to the period, i.e. day is fastest and year slowest (still withing 1 second).