У меня есть требование, когда клик по гиперссылке должен загружаться в дочернем окне.
Следующий код:
<a onclick="openChildWindow('http://xx.xxx.xx...');return false;">View details</a>
function openChildWindow(url)
{
"use strict";
var child = window.open(url, defaultWindowName);
child.focus();
}
в соответствии с соображениями безопасности нам необходимо показать значение атрибута управления кэшированием заголовка ответа в виде «no-cache, no-store, max-age = 0» для запрошенного URL-адреса tre, переданного в window.open
Java side we are resetting the header value to "no-cache, no-store, max-age=0"
Here comes my problem/issue
When I click on hyper link on MS Edge browser in network tab I see two requests of same URL which passed in the window.open one requst response is 200 and another is 302.
for 200 status response header value is setting as expected "no-cache, no-store, max-age=0"
for 302 I see response header cache-control header values is private.
Can someone helps me why in edge browser I see two requests why 302 default value is private. How can I reset this value to "no-cache, no-store, max-age=0" or how can I avoid this 302 request/redirect URL triggered.