Images use IP address some times

1 2 >
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
Posted: August 14, 2018 at 6:28 PM Quote #210557
A.M. Any thoughts?
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: August 14, 2018 at 11:15 PM Quote #210561
dootchie 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?




As you tick the ssl checkbox. So give the secure link of the shop. You must have the SSL certificate at the server. Then you have to enable "Force SSL for all site pages" from general setting. Otherwise, your cart,checkout, login and admin panel will not work.

If you do not have ssl certificate then simply uncheck the ssl and do not need to check the "Force SSL for all site pages" from the general setting.

After complete this setup, you need to clear your cache from admin side.
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: August 15, 2018 at 6:15 AM Quote #210569
Thanks, I do have SSL. Here are the new settings in 4.10. I changed my "Store URL" to include https, instead of http. I'll give it a shot.

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: August 15, 2018 at 6:30 AM Quote #210570
Till nopcommerce4.0 there was an extra text(Secure URL) and it opened when admin checks the "SSL enabled" checkbox but at current version i.e nopcommerce4.1 I do not see this option. I am a little confused about this. At Nopcommerce admin demo site, the input textbox also not showing.

I think it is ok. Because the field also not exists at the Database. And it is by design.
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: August 15, 2018 at 6:36 AM Quote #210571
Yeah I thought that was a little weird too. I dont see any console errors in Chrome Debug. Wonder if they just removed it?
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: August 15, 2018 at 6:46 AM Quote #210573
dootchie wrote:
Yeah I thought that was a little weird too. I dont see any console errors in Chrome Debug. Wonder if they just removed it?


I think you should go with this setting. Because the GetStoreHost method have some changes at nopcommerce4.1. The setup is ok, go for it.

Yes, the field no more needed.
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)
1 2 >
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.