How do I configure ASP.Net OutputCache to vary by http vs https?

前端 未结 3 1390
别那么骄傲
别那么骄傲 2021-02-13 10:44

Here is the scenario, a user opens up non-secure page from our WebApp, let\'s call it PageA, in their browser and then clicks a link in there that takes them to a secure instanc

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 11:21

    This doesn't answer the question as worded but it may eliminate your need to vary by scheme. If you are hard coding the "http://" for the Scene7 urls you can change them to scheme-relative urls.

    
    =>
    
    

    That will cause the browser to automatically ask for the resource with the same scheme as the referring page. That's assuming you have an SSL certificate for your scene7 domain of course.

提交回复
热议问题