Set no-cache no-store on the server

Set no-cache no-store on the server

DomJM
Shopify Partner
1 0 0

I have written several scripts and tested them in the Preview builds. When those changes are published the to the live theme, I noticed the code breaking and the scripts not running in the network tab. This seems to be due to the Preview Builds having `no-cache no-store` set to server cache, while Published builds have caching on by default. I've attempted to alter the meta-tag headers, implement cache-busting etc. all to no avail.

I'm looking for advice on how to alter the server cache settings without the use of a full-stack framework like Hydrogen or Remix, and/or a method of refactoring to get these scripts to run on cache'd pages somehow.

Replies 0 (0)