Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3456862
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:47:21+00:00 2026-05-18T09:47:21+00:00

Building an MVC 2.0 web site and using Content Delivery Network (CDN) in my

  • 0

Building an MVC 2.0 web site and using Content Delivery Network (CDN) in my Site.Master. I’m using the following CDN:

  • Yahoo’s reset-fonts-grids.css
  • jQuery 1.4.2
  • jQuery Validation

All of these CDN are delivered using http://

My web site currently supports both SSL and non-SSL pages.
When navigating to SSL enabled pages, I get an error because the CDN are linked to HTTP://

Although I’m aware that you can use an SSL version of CDN but my question is more like:

Since I have non-SSL and SSL pages all sharing the same *Site.Master* what should I do?
Should I simply get the SSL enabled version one for both SSL and non-SSL pages?
Or should I do some kinda of “if…else”?

Any Pros or Cons to any of these approach?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:47:22+00:00Added an answer on May 18, 2026 at 9:47 am

    if…else looks the most viable solution, although you may want to always use SSL and forget about everything.

    Warnings about pages with mixed-security contents are reasonable, because scripts may be exploitable over insecure connections. Think to a banking website with a hacked script that forwards the HTML markup of your account history to a malicious user.

    There is no con in using an if–else statement to check which protocol string to prepend to the URL of an external resource, not even performance (checks are done in microseconds…), however, about performance, a drawback in always using SSL, while not needed, is present, because the browser will have to establish a secure connection (SSL/TLS handshake) and perform lots of unnecessary cryptographic operations.

    I would go for the if–else, and since you use a master page, you have less places in your code to modify!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.