iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
eCommerce Discussion Forum Ask questions about web hosting, merchant services and ecommerce issues. Topics include shopping carts, security, payment strategies, storefront partnerships, etc.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2009, 08:21 AM
WebProWorld New Member
 
Join Date: Sep 2006
Posts: 2
kmm2908 RepRank 0
Default https: images and css files

In order to avoid mixed content (secure and non-secured) on a https page on our site I have amended all image and css links to https.

However, as this will now mean the entire site (including http pages as well as https) accessing some images and all css images through a https link is this likely to result in a noticeable slow down of page loading due to the increased workload on the server?

What does everyone else think about the benefit of adding separate css, footer and header files for the https pages? Would this be a better way to go with regards to page load times?

Look forward to everyone's opinion and thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 04-27-2009, 09:05 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 961
speed RepRank 1
Default Re: https: images and css files

I'd break the site in to two parts, secure and non-secure or if this isn't practical then use relative paths.

If you link to the CSS with a relative path then it'll load over http or https depending on the calling page, if all the images in the CSS are also using relative paths then they to will load over http or https depending on the calling page.

Where you have <img> tags in the page again if they are all using relative paths the images should just load over http or https depending on the calling page.
Reply With Quote
  #3 (permalink)  
Old 04-27-2009, 10:51 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,298
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: https: images and css files

Using secure mode (https://) to serve up pages in "http://" will cause a noticeable reduction in performance. It's bad practice.

Here's a trick I use to avoid the "mixed content" message.

When linking to images or files that are used in both the secure and non-secured pages, try using relative URLs.

Here's a page outlining some additional issues to look out for.
IE Mixed Content - Page Contains Both Secure and Nonsecure Items | Zorked!

I'm pretty sure you're using include files, so if you want to specify an absolute path, you might want to use a script to check for a secure or non-secured session. If it's secured, just append an "s" to the "http".

.02
Reply With Quote
Reply

  WebProWorld > eCommerce > eCommerce Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Site images or... Will my ranking falter if I change all my images? nipplecharms1 Google Discussion Forum 4 02-20-2008 01:06 PM
HTTP vs HTTPS amar Google Discussion Forum 4 06-14-2006 01:54 AM
SEO with https Website snair007in Search Engine Optimization Forum 2 06-20-2005 03:00 PM
what about https Jomm.nl Google Discussion Forum 5 04-21-2005 10:31 PM
Crawlers and https??? Niko Holopainen Search Engine Optimization Forum 3 04-26-2004 09:23 AM


All times are GMT -4. The time now is 06:37 PM.



Search Engine Optimization by vBSEO 3.3.0