how to set response header attibute to redirect(302) request The Next CEO of Stack OverflowMicrosoft Edge PDF inline issueAngularJS $Http not triggered on Edge/IEMS Edge and IE don't redirect after login and get HTTP 302 codeMicrosoft Edge 14 options request response not received?IE Edge and Cache controlEdge cross-domain request via HTTPSAjax GET results by an “ERR_INCOMPLETE_CHUNKED_ENCODING” and “XMLHttpRequest: Network Error 0x800c0007” suddenlyEdge - Audio tag partial response 206Dynamic captcha image not working in Microsoft EdgeRequest is loading twice in Microsft Edge Browser, when tried to open the URL in window.open
Why do remote companies require working in the US?
Rotate a column
When Does an Atlas Uniquely Define a Manifold?
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
Whats the best way to handle refactoring a big file?
How to safely derail a train during transit?
What does "Its cash flow is deeply negative" mean?
What does this shorthand mean?
How easy is it to start Magic from scratch?
Why do professional authors make "consistency" mistakes? And how to avoid them?
How should I support this large drywall patch?
What is the purpose of the Evocation wizard's Potent Cantrip feature?
How to Reset Passwords on Multiple Websites Easily?
MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs
Term for the "extreme-extension" version of a straw man fallacy?
What's the point of interval inversion?
How do scammers retract money, while you can’t?
Why here is plural "We went to the movies last night."
If I blow insulation everywhere in my attic except the door trap, will heat escape through it?
What is the difference between "behavior" and "behaviour"?
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
How to write the block matrix in LaTex?
Anatomically Correct Mesopelagic Aves
Opposite of a diet
how to set response header attibute to redirect(302) request
The Next CEO of Stack OverflowMicrosoft Edge PDF inline issueAngularJS $Http not triggered on Edge/IEMS Edge and IE don't redirect after login and get HTTP 302 codeMicrosoft Edge 14 options request response not received?IE Edge and Cache controlEdge cross-domain request via HTTPSAjax GET results by an “ERR_INCOMPLETE_CHUNKED_ENCODING” and “XMLHttpRequest: Network Error 0x800c0007” suddenlyEdge - Audio tag partial response 206Dynamic captcha image not working in Microsoft EdgeRequest is loading twice in Microsft Edge Browser, when tried to open the URL in window.open
I have a requirement when click on hyper link details should load in the child window.
Following is the code:
<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();
as per the security reasons we need to show response header cache-control attribute value as "no-cache, no-store, max-age=0" for tre requested URL passed in 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.
microsoft-edge
add a comment |
I have a requirement when click on hyper link details should load in the child window.
Following is the code:
<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();
as per the security reasons we need to show response header cache-control attribute value as "no-cache, no-store, max-age=0" for tre requested URL passed in 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.
microsoft-edge
add a comment |
I have a requirement when click on hyper link details should load in the child window.
Following is the code:
<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();
as per the security reasons we need to show response header cache-control attribute value as "no-cache, no-store, max-age=0" for tre requested URL passed in 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.
microsoft-edge
I have a requirement when click on hyper link details should load in the child window.
Following is the code:
<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();
as per the security reasons we need to show response header cache-control attribute value as "no-cache, no-store, max-age=0" for tre requested URL passed in 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.
microsoft-edge
microsoft-edge
edited Mar 22 at 6:26
Harish Kollipara
asked Mar 21 at 16:40
Harish KolliparaHarish Kollipara
114
114
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
How can I reset this value to "no-cache, no-store, max-age=0"
In my opinion, we can't set it header through the window.open method. You could add it from the server side. Please refer to this article.
how can I avoid this 302 request/redirect URL triggered.
Please check this article:
302 code the typical use case: The Web page is temporarily not available for reasons that have not been unforeseen. That way, search engines don't update their links.
So, please check the request website, make sure it is available.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285306%2fhow-to-set-response-header-attibute-to-redirect302-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
How can I reset this value to "no-cache, no-store, max-age=0"
In my opinion, we can't set it header through the window.open method. You could add it from the server side. Please refer to this article.
how can I avoid this 302 request/redirect URL triggered.
Please check this article:
302 code the typical use case: The Web page is temporarily not available for reasons that have not been unforeseen. That way, search engines don't update their links.
So, please check the request website, make sure it is available.
add a comment |
How can I reset this value to "no-cache, no-store, max-age=0"
In my opinion, we can't set it header through the window.open method. You could add it from the server side. Please refer to this article.
how can I avoid this 302 request/redirect URL triggered.
Please check this article:
302 code the typical use case: The Web page is temporarily not available for reasons that have not been unforeseen. That way, search engines don't update their links.
So, please check the request website, make sure it is available.
add a comment |
How can I reset this value to "no-cache, no-store, max-age=0"
In my opinion, we can't set it header through the window.open method. You could add it from the server side. Please refer to this article.
how can I avoid this 302 request/redirect URL triggered.
Please check this article:
302 code the typical use case: The Web page is temporarily not available for reasons that have not been unforeseen. That way, search engines don't update their links.
So, please check the request website, make sure it is available.
How can I reset this value to "no-cache, no-store, max-age=0"
In my opinion, we can't set it header through the window.open method. You could add it from the server side. Please refer to this article.
how can I avoid this 302 request/redirect URL triggered.
Please check this article:
302 code the typical use case: The Web page is temporarily not available for reasons that have not been unforeseen. That way, search engines don't update their links.
So, please check the request website, make sure it is available.
answered Mar 22 at 8:07
Zhi Lv - MSFTZhi Lv - MSFT
740135
740135
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285306%2fhow-to-set-response-header-attibute-to-redirect302-request%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown