Shopify not Updating changes on CDN...

New Member
2 0 0

Has anyone had this issue before?

I make changes to an asset on my local machine, the shopify theme tool says it has updated the file, when I go to shopify and check my assets folder, the updated version is visible.

here is where it gets weird...

When I pull up the website, the file that the Shopify CDN gives me is the old version.

I've tried clearing my cache, refreshing a thousand times, even tested different machines. no luck.

0 Likes
Highlighted
Shopify Expert
196 0 23

Hi Ivan,

Yep that is weird. To bypass this you could try uploading your asset under a different name and referencing that in your theme.

-Ryan

Stop Stressing About Shopify You’ve Got Better Things To Do => https://320ny.com/shopify/
0 Likes
Astronaut
1925 0 380

Can you paste the Liquid code that you're using to display the asset file?

0 Likes
New Member
2 0 0

That's where I made the mistake... You made me realize when I created a sprite sheet I did not use the liquid code to get the URL

The Fix..search and replace..  

url( sprite.png )  

-with-

 url( {{ 'sprite.png' | asset_url }} )

 

0 Likes