Opinion: Link header is not a good implementation

Andrew_Smith5
Shopify Partner
11 0 2

I understand the caching requirements and that the "Link" provides a way of iterating through the URLs more efficiently and I applaud that. However the way we access the URLs is a pain. Having it in a header mixed in with other data means we have to run the header through a Regex each time it's returned.

I understand some will have implemented this so I'm not proposing it's removed, but would it be possible to add 4 new headers?

X-Shopify-URL-Next, X-Shopify-URL-Previous, X-Shopify-URL-PageCount and X-Shopify-URL-TotalPages

This way we can just grab the data and use it rather than having to parse it each time?

 

Any thoughts?