Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting javascript libraries from Google / Microsoft CDNs through SSL


I'm getting a couple of libraries from Google / Microsoft CDNs.

ONLY one page on the system uses SSL but since I'm referencing libraries on the master page I'm getting the javascript libraries using the SSL so the single page that actually requires it doesn't throw security errors because accessing unsafe resources.

I've read that the browser cache doesn't work for most of the browsers if the resource is loaded using SSL, my test using fiddler indicates the opposite (Firefox and IE).

What's the truth? I'm using the CDN for improving performance so if getting the library using SSL is against my purpose, I would revert this "improvement".

I could build send the code for referencing the library on the code behind ans use SSL or not according the case, but I would like to avoid this.

Thanks!

like image 426
StackOverflower Avatar asked Aug 03 '26 00:08

StackOverflower


1 Answers

It's common practice to not cache secure web pages on disk. This effectively negates advantage of precached scripts. In other hand secure page requisites SHOULD be served using secure connection. You have to choose between convenience and security.

like image 85
Free Consulting Avatar answered Aug 05 '26 13:08

Free Consulting



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!