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

前端 未结 3 1388
别那么骄傲
别那么骄傲 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:38

    I've never tried it but you might be able to use the Outputcache VaryByHeader property and the "host" header, which specifies the Internet host and port number of the resource being requested.

    The question I'd have is why are you redirecting to PageA over secure after from PageB. If its a non-secure page, couldn't you fix the PageB redirect to always redirect to non-secure.

提交回复
热议问题