scene7

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

ε祈祈猫儿з 提交于 2020-01-01 04:13:06
问题 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 instance of PageB. Once in PageB the user can subsequently click a link that takes them back to a secure instance of PageA (which they already viewed and is in OutputCache). I observed that even though PageA is being accessed over a different URL after visiting PageB (the secure one) it's actually pulling the prior cached copy

how do i replace a query with a new value in urlparse?

本秂侑毒 提交于 2019-12-12 02:57:08
问题 so I have a data as follows: item = '//s780.scene7.com/is/image/forever/301596014_001?hei=98&wid=98' using urlparse module. how can i replace the above data with a new size to make it look like this: item = '//s780.scene7.com/is/image/forever/301596014_001?hei=360&wid=360' 回答1: Here is an answer which, as requested, uses urlparse: import urllib import urlparse url = '//s780.scene7.com/is/image/forever/301596014_001?hei=98&wid=98' parts = urlparse.urlparse(url) query_dict = urlparse.parse_qs

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

杀马特。学长 韩版系。学妹 提交于 2019-12-03 10:45:27
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 instance of PageB. Once in PageB the user can subsequently click a link that takes them back to a secure instance of PageA (which they already viewed and is in OutputCache). I observed that even though PageA is being accessed over a different URL after visiting PageB (the secure one) it's actually pulling the prior cached copy rather making a fresh one. I verified this behavior in a debugging session, and was surprised that ASP