Leverage browser caching in Shopify

Shopify Expert
55 7 15

I'd like to "leverage browser caching" as recommended by PageSpeed. I can't find any resources on how to implement this in Shopify (can I edit the .htaacess for Shopify hosted site?) Can I do it?

Want to modify or custom changes on store for affordable price?
Hire us - https://experts.shopify.com/mandasa-technologies
Website: http://www.mandasa.in/
Email: info@mandasa.in
If helpful then please Like and Accept Solution.
Shopify Staff
Shopify Staff
535 105 109

Hi There! 

Victoria here from the Guru team!

We do not support leverage browser caching as that's not possible with the infrastructure of Shopify.

Our servers are very fast, though, and typically the only slowdown folks experience comes from their local internet connection, and not on the server side, which would seem to be what Google PageSpeed typically targets. The .htaccess file is not accessible with Shopify but generally the best way to increase your page speed is to compress large images on your page.

Often the browser caching notice on a speed test will be in relation to a specific app. If you do notice this, you can decide if you would like to keep the app or not :) 

Hope that helps! 

Victoria - Shopify Guru


Vix | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Shopify Partner
248 9 63

Use something like webpagetest.org to find out what you really need to optimize


Shopify Partner
33 0 8


if you need to optimise images, we released an app Crush.pics It's using lossless image compression, so your images will stay same as originals.

Compressing images will improve your PageSpeed score, here is one example from our test sites:

    • before compression PageSpeed score is 56/100https://goo.gl/HBg3ay

    • after compression PageSpeed score is 87/100https://goo.gl/fl3NXv


New Member
1 0 2

I couldn't disagree with this more. From my experience with Shopify's servers, they are often slow. Also, leveraging browser caching is an essential part of web development. Sure, natively Shopify may not need it. But there are a host of apps that would benefit greatly from being able to. And often these apps are essential to building, tracking and maintaining a website. For Shopify to just write it off as "Nah, we're good" is silly. Like so many things you insist on controlling and not allowing developers to work with.