What's your biggest current challenge? Have your say in Community Polls along the right column.

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

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

SenSinsations
Excursionist
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
paris@sensualsinsations.com
Replies 2 (2)

oreoorbitz
Shopify Partner
261 31 133

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
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949

flareAI
Shopify Partner
2405 224 545

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,

 

Gina
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