How can I add an HTTP Expires header without .htaccess access?

43 0 13

I am attempting to reduce the number of HTTP requests by setting cache headers for my javascript resources. But it doesn't seem there is access to the .htaccess file. Am I overlooking something, or is there another way to do what I am wanting? 

Paris Munn
Owner & Founder
Sensual Sinsations
Replies 2 (2)

Shopify Partner
255 31 132

You cannot edit .htaccess in shopify. You can't controll caching for shopify assets, they are hosted on a CDN, and giving access to merchants to controll that caching is too complicated for Shopify to bother with.

Available for pagespeed consulting

Shopify Partner
2405 223 540

Hello @SenSinsations,


You cannot edit the Shopify store .htaccess file. You can reduce the HTTP requests by following the below steps:


1. Remove all unused apps
Most of the Shopify apps have their own javascript and CSS files. Even if you are not using the apps, the JS/CSS files continue loading. The best idea is to remove all unused apps so that your store will load faster.
2. To reduce the initial load time, you can use Lazyload technique
3. Use the minified version of javascript, CSS
4. Themes contain CSS, JS, HTML which can increase and affect your store speed. So disable theme features you don't use.
5. Using a theme that is optimized for performance means a theme that is responsive, fast, and takes minimal time to load the page.
6. You can run the Shopify Theme Inspector for Chrome to identify the lines of code that are slowing down pages in your online store.

When your customers search on Google, your product can be found only if your page is indexed. Note that once a URL gets indexed, customers will start finding your store through organic searches, you will start getting order conversions for virtually zero cost. Making it sustainable business growth. flareAI helps to get your new products found on Google. flareAI works every day for you. Get sales from 20+ world's largest free sales channels, Single click start!

Hope this was helpful,


Add flareAI Shopify App today!

flareAI : Get Sales from Google Search, on Autopilot
$10+ billion in eCommerce on Google Search, every day. Find out how much you are missing