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
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
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