I'm running a shopify website and the big problem with this kind of websites is that when they load the static resources (images for example), they generate a query so the URL in the generated HTML will look like:
For optimization reasons I need to remove everything after the "JPG" so the code will look like
Resources in Shopify come with cache keys like that for a reason. If the resource has not changed, it gets downloaded exactly once. Hence those extra codes. You cannot optimize this yourself, as you are not the expert at the delivery of assets, and Shopify, as a hosted platform takes responsibility for rendering assets.
So just forget those extra query params! Nothing you can do there.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.