I am also having trouble with this. I am using nopCom v2.5.
thrifty34 wrote:I Fixed it. I replaced all
(_webHelper.GetStoreLocation()) in PictureService.cs
with
(_webHelper.GetStoreLocation(true))
I don't think it's a good idea to permanently uses secure connections for images.
a.m. wrote:Actually _webHelper.GetStoreLocation() already returns "https" if a requested URL is SSL secured. And it returns "http" if a requested URL is not SSL secured
Yes this is true, but does not explain why images in the shopping cart page use secure connections and images on the home page do not when they both use the same _webHelper.GetStoreLocation() method.
I have cleared my browser cache and have clicked the 'clear cache' link within nopCom admin and restarted the application several times.
I now think it is a problem with server side cache. For example on LINE 318 of control \Presentation\Nop.Web\Controllers\CatalogController.cs method PrepareProductOverviewModel is used to generate the Best seller’s grid on the home page. I'm no expert so haven't looked into the cache logic yet. Is it is possible to build into the cache logic a check for secure connection or not. Alternatively, should we just set the home page, item pages etc. to always use a non-secure channel?