Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: How to purge/delete App proxy URL Cache

Solved

How to purge/delete App proxy URL Cache

mandeepsandhu91
Shopify Partner
5 0 2

I have been searching for this for a while now but did not find a solution. Shopify is serving cached content when app proxy URL is viewed. When I see the same page using the original URL, the content shown is the latest content but when same URL is fetched using proxy URL, it shows cached content.

Example URLs:
Original URL and content: https://collection-swatch-pug.herokuapp.com/csp_v2.js 
App proxy URL: https://devstorepro2.myshopify.com/tools/csp/csp_v2.js

Ideally both these URLs should return the same content because the app proxy url is pointing to this original URL. The content served by app proxy URL is not the latest content and cached content is being provided.

Please help me with knowledge about how to clear the app proxy URL cache and serve the latest contents.

Thank you so much in advance.

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 422

This is an accepted solution.

Hey @mandeepsandhu91,

 

I just checked the app settings - /tools/csp doesn't appear to point to collection-swtahc-pug.herokapp.com

 

Let me know if I'm missing something.

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 2 (2)

SBD_
Shopify Staff
1831 273 422

This is an accepted solution.

Hey @mandeepsandhu91,

 

I just checked the app settings - /tools/csp doesn't appear to point to collection-swtahc-pug.herokapp.com

 

Let me know if I'm missing something.

Scott | Developer Advocate @ Shopify 

mandeepsandhu91
Shopify Partner
5 0 2

Thank you so much @SBD_ . That was so stupid of me. I was always looking in the wrong direction and you saved the day.

We recently changed app servers and I thought that proxy URL would be something that would automatically update with the change of app URL in the partner settings. I was wrong. I checked the proxy URL settings in my partner dashboard and it was pointing to our old server which is still running because we have other stuff hosted on it. 

Thank you for your help again and wish you a merry Christmas.   🙂