Images use IP address some times

Posted: July 11, 2018 at 9:01 AM Quote #208487
Hi, does anyone else have this issue? Sometimes when I go to my website the images do not display. When I Inspect it, the URLs to the images are the IP. If I clear the cache and restart the app, it doesn't do anything. I have to log onto my VPS, stop my website, recycle the app pool, then start my website....No idea why...

This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Custom T-Shirts at http://www.ochapparel.com
Posted: July 12, 2018 at 1:45 AM Quote #208507
Hello,

The images get cached by the store URL. So if the Store URL setting in your store (Administration -> Configuration -> Stores) is different from your actual store url your pictures might be cached to the value of the setting.
Fixing that setting and clearing your cache should fix your problem

Hope that helps!

Regards,
Anton
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.Nop-Templates.com - the best place for nopCommerce themes and plugins

Follow us on
Facebook: http://www.facebook.com/NopTemplates
Twitter: http://twitter.com/NopTemplates
Blog: http://www.nop-templates.com/blog

www.Nop-Templates.com
nopCommerce Solution Partners
Posted: July 12, 2018 at 3:28 AM Quote #208511
Hi Anton,

I have a related question.  Doing the optimization of our shop, Chrome's Lighthouse suggests to serve images either from a CDN (which I would not prefer) or at least from a cookieless URL.  I would setup a subdomain, like content.mydomain.com on our server for this and move all the images there.

How difficult would that be to implement in the code?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 12, 2018 at 6:30 AM Quote #208522
Nop-Templates.com wrote:
Hello,

The images get cached by the store URL. So if the Store URL setting in your store (Administration -> Configuration -> Stores) is different from your actual store url your pictures might be cached to the value of the setting.
Fixing that setting and clearing your cache should fix your problem

Hope that helps!

Regards,
Anton


thanks, yeah that's the thing. I think I have it setup correctly...right?

This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Custom T-Shirts at http://www.ochapparel.com
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2018
Learn more