Thank you for the advice, yes, our site use https exclusively but yet, 
several links have // as references. We should actually update all those 
links and references to explicitly use https://

On Friday, October 18, 2019 at 7:36:27 AM UTC-7, [email protected] wrote:
>
> Protocol relative URLs, starting with // but not specifying http or https, 
> e.g. //www.example.com/asset.jp <http://www.example.com/asset.jpt>g, are 
> useful on a site that is served through both HTTP and HTTPS to ensure that 
> assets are loaded using the same protocol. I can't find a clear W3C 
> standard for protocol relative URLs though they certainly have been part of 
> standard practice for years.
>
> Today, there is a clear recommendation that all sites be served using 
> HTTPS exclusively. The expense and hit for using HTTPS is considerably less 
> than it has been in the past. Your site will increasingly throw up warnings 
> in most web browsers if it is still using, or even allowing, HTTP. 
>
> So you might consider simply specifying the CDN links using HTTPS as the 
> protocol. This will work fine if the page happens to be served over HTTP 
> and doesn't incur any more overhead serving those resources than a normal 
> HTTPS page load would. Possibly less since stray HTTP hits are less likely 
> to be in the cache.
>
> [fletcher]
>
>
> On Oct 18, 2019, at 6:20 AM, Greg Raven <[email protected] <javascript:>> 
> wrote:
>
> This is not a BBEdit problem. If you run "Check Links" on pages with the 
> //cdn links, you will note that BBEdit tells you those images cannot be 
> found. Frankly, I can't for the life of me imagine why you would want to 
> manage your assets this way. If the page points to the CDN version, then so 
> should your preview. Otherwise, you could have an image on your local 
> machine but not on the CDN, it would preview fine locally but the image 
> would not appear in the published site. Wish you'd been more clear in the 
> beginning; that's why I asked for clarification.
>
> On Friday, October 18, 2019 at 6:02:48 AM UTC-7, Fabrizio Ferrari wrote:
>>
>> Oh yes, sure, if I add "https:" it works fine because it is going to grab 
>> the image over the network to the server, but I was wondering if there is a 
>> way to use the local images without altering the html code by creating a 
>> simlink somewhere on my system?
>>
>> Thanks.
>>
>> On Thursday, October 17, 2019 at 2:06:39 PM UTC-7, Greg Raven wrote:
>>>
>>> Have you tried putting "http:" or "https:" in front of your external 
>>> links? It's possible that BBEdit does not interpret external links in the 
>>> format you are using.
>>>
>>> On Thursday, October 17, 2019 at 7:27:15 AM UTC-7, Fabrizio Ferrari 
>>> wrote:
>>>>
>>>> I am sorry I wanst' clear.
>>>>
>>>> I am talking about image references, with markup like this:
>>>>
>>>> <img height="267" width="976" src="//
>>>> cdn4.virtualsheetmusic.com/images/newdesign/gallery/imageSlideBIG/Halloween_Sheet_Music_4_BIG.png
>>>> "alt="Halloween Sheet Music Collections" class="expimgbanners 
>>>> hideRESP558">
>>>>
>>>>
>>>> How can I have that image showing in the BBEdit Preview window? I have 
>>>> that image file locally inside a folder on my computer, so I guess there 
>>>> is 
>>>> a way to create a simlink somewhere to have the source:
>>>>
>>>> //
>>>> cdn4.virtualsheetmusic.com/images/newdesign/gallery/imageSlideBIG/Halloween_Sheet_Music_4_BIG.png
>>>>
>>>> loading the local image correctly.
>>>>
>>>> I have no problems to load images like this for example:
>>>>
>>>>
>>>> <img height="267" width="976" src=
>>>> "/images/newdesign/gallery/imageSlideBIG/Halloween_Sheet_Music_4_BIG.png"
>>>>  alt="Halloween Sheet Music Collections"class="expimgbanners 
>>>> hideRESP558">
>>>>
>>>> I just created a simlink to the /images/ directory on my computer root 
>>>> directory and made the trick. But any //cdn4.virtualsheetmusic.com 
>>>> reference 
>>>> brings to nowhere. Of course, I could just replace that with:
>>>>
>>>>
>>>> https://cdn4.virtualsheetmusic.com/images/newdesign/gallery/imageSlideBIG/Halloween_Sheet_Music_4_BIG.png
>>>>
>>>> And let load the page from the web, but I am just wondering if there is 
>>>> a way to create a simlink somewhere on my local computer to have local 
>>>> images loaded instead.
>>>>
>>>> I hope this is clear. Thank you!
>>>>
>>>> Fab,
>>>>
>>>>
>>>> On Thursday, October 17, 2019 at 5:00:44 AM UTC-7, Greg Raven wrote:
>>>>>
>>>>> I'm having difficulty understand what you are asking. Are you saying 
>>>>> you want BBEdit to preview something other than the HTML code on your 
>>>>> pages, or that you need a better way of managing your digital assets?
>>>>>
>>>>> On Wednesday, October 16, 2019 at 4:54:32 PM UTC-7, Fabrizio Ferrari 
>>>>> wrote:
>>>>>>
>>>>>> Hello everyone.
>>>>>>
>>>>>> I am trying to get out most of the useful "Preview in BBEdit" 
>>>>>> feature, but I am stuck in solving a problem.
>>>>>>
>>>>>> The way I'd like to use that Preview feature is to display static 
>>>>>> HTML pages taken from my websites. All references to images like the 
>>>>>> following:
>>>>>>
>>>>>> /images/icons/icon.jpg
>>>>>>
>>>>>> Have no problems to be displayed once I put a simlink in the root 
>>>>>> disk of my Mac (I am on Mac OS), but if I have references looking at 
>>>>>> images 
>>>>>> on our content delivery network like this one:
>>>>>>
>>>>>> //cdn.mywebsite.com/images/icons/icon.jpg
>>>>>>
>>>>>>
>>>>>> I can't find a way to reference those locally. Any ideas? If you know 
>>>>>> how to do it, or you have a workaround, I'd really like to hear it!
>>>>>>
>>>>>> Thanks in advance to anyone for any help.
>>>>>>
>>>>>> All the best,
>>>>>>
>>>>>> Fab.
>>>>>>
>>>>>>
>>>>>>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or need technical support, please email
> "[email protected] <javascript:>" rather than posting to the group.
> Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/1ec7dd7a-3001-443a-8c6a-eaa32964f5a7%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/1ec7dd7a-3001-443a-8c6a-eaa32964f5a7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/e1cca5ad-1383-4654-96cf-2b03513135fa%40googlegroups.com.

Reply via email to