Good news everyone! (and bad news for some maybe?)
I have moved the “front door” of Boundlexx from Cloudflare’s free tier to Microsoft Azure. I have some free credits floating around that allows me to get premium caching features for no cost. What this brings is significantly better caching. Cached responses will be much faster (usually 25x faster response time on average) and causing significantly less load on the origin server.
I am also dynamically purging the cache as well so URLs will stay fresh when they change. In other worlds, if a new Exoworld appears, I tell the CDN to throw out the cache on
/api/v1/worlds/ so the new Exoworld will appear next time someone requests it. That means people are not waiting for 30 minutes+ for cached URLs to expire. However, it does take some time to purge cached URLs. It can take up to 2 minutes for a URL to be purged. So that means up to 2 minutes after an Exoworld is discovered, it may not appear on
Also, formats. With caching, you must now be explicit about your format you want now. Before the API could guess pretty easily if you wanted the browsable API or a JSON response based on if your request was coming from a browser or code. With the caching in place now, that is not really possible, so you will need to be explicit about which format you want. Adding the query string parameter of
format=api will force the browsable API and
format=json will force a raw JSON response.
EDIT: You asked and I listened. Based on popular demand,
format=json is the default 100% of the time now. If you want the browsable API, you much add
format=api to the URL to get it.
These can kind of all be breaking changes so as a result, none of this is being forced on people right now. However the old Cloudflare routes are now deprecated. Please update your base URL for everything from https://boundlexx.app/api/v1/ to https://api.boundlexx.app/api/v1/ as soon as you are able to test the new caching changes and start using the format query param. https://boundlexx.app/api/v1/ will stay available for at least 1 week (through 9/20). After that date, I cannot promise it will keep working.
If you are having any trouble migrating or any problems with the new caching, please let me know.