We should have two subdomains to cache requests, resulting not only on better performance but also a more organized workflow. My recommendation:
api.evscalculator.com: For AJAX calls. Returns JSON results for pokémon requests, submitting new pokemons into the equipment, etc.
img.evscalculator.com: For pokémon images. Given the heavy size of these images, we need to cache them and deliver them through a CDN.
Both of these domains should be set on Cloudflare as it's a completely free CDN system. I would also recommend to set the evscalculator domain through Cloudflare so we have faster content delivery but without caching.
Steps:
[x] Create both domains.
[x] Create Cloudflare account.
[ ] Point all the domains to Cloudlfare on the server.
[ ] Point them back to the server from Cloudflare.
We should have two subdomains to cache requests, resulting not only on better performance but also a more organized workflow. My recommendation:
Both of these domains should be set on Cloudflare as it's a completely free CDN system. I would also recommend to set the evscalculator domain through Cloudflare so we have faster content delivery but without caching.
Steps: