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?
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
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/100: https://goo.gl/HBg3ay
• after compression PageSpeed score is 87/100: https://goo.gl/fl3NXv
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.