Hi everone,
We have created an Shopify App and are going public anytime soon.
Our app is creating a script on the customer Shopify Store using the ScriptTag API (admin/api/2021-01/script_tags).
We are caching this by settings the cache flag to “true”.
That script is the same for all shops.
The script does an AJAX request via Shopify App Proxy, and we can then verify which shop it is, before returing HTML/CSS which is our service.
However, this takes little more than 1 second, see videon on example.
Some customer that goes directly via our API get the response in around 30 ms.
I’m wondering if there is a better way for us to implement this?
Best practice?
Greetings