Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: configuring cache control header

configuring cache control header

ecomm_umit
Shopify Partner
5 0 1

Is there anyone can help me changing the cache-control header? I asked to shopify support and the support agent adviced me go and ask to community forum someone might help you.

here is ss I attached into this post you can see. Some elements' cache control header is set by 30 days instead of 365 days.

Is this possible to configure through the Shopify admin dashboard, theme files or any code edit?

Screenshot from 2024-09-11 14-51-51.png

Replies 2 (2)

PaulNewton
Shopify Partner
7450 657 1565

Hi @ecomm_umit shopify's online-sales channel is a locked down platform hosted service.

You cannot modify things that deep in the stack like server headers on the online-sales channel.

 

If you need that level of control you need to roll you own stack

https://shopify.dev/custom-storefronts

But still that will be dependent on shopify's api performance.

 

 

 

 

And it's super weird support couldn't simply tell you this.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


ecomm_umit
Shopify Partner
5 0 1

Hi @PaulNewton thank you for your super fast response. I had a very long chat with support agent at the end she adviced me ask to community or hire a shopify expert 🙂

yes I guess it is handled by Shopify's server infrastructure. thank you for your kind reply.