Last post Jul 07, 2016 03:20 PM by AceHigh26
Jul 06, 2016 11:02 PM|AceHigh26|LINK
I have a WCF Rest service with caching enabled. I have verified it is properly cached and my consuming applications also received the cache content as expected.
I however have a new requirement that the service must exist over https only. If I browse the service directly the service response is properly cached without issue.
However if my consumers attempt to call the service caching no longer works over https. Is this a restriction and is there any way around this? I would like caching to work over https.
Jul 06, 2016 11:28 PM|PatriceSc|LINK
How is caching configured and how it this called (from a browser? and if yes, which one?) in case I would try to reproduce this issue. If I remember I read once that https content (as it is sensitive) can be cached less agressively by some browsers and proxies and
may require some additional settings to be fully enabled.
Jul 07, 2016 03:20 PM|AceHigh26|LINK
It turns out https caching was working but the developer consuming the code was sending different parameters to the service which had caching enabled by Param.
Caching was setup using output caching in the web.config file as follow.s
<add name="TestCache" location="Server" duration="86400" enabled="true" varyByParam="Param1;Param2;Param3;"