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










0















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.









share|improve this question




























    0















    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.









    share|improve this question


























      0












      0








      0








      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.









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 6:26







      Harish Kollipara

















      asked Mar 21 at 16:40









      Harish KolliparaHarish Kollipara

      114




      114






















          1 Answer
          1






          active

          oldest

          votes


















          0















          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.






          share|improve this answer























            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
            );



            );













            draft saved

            draft discarded


















            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









            0















            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.






            share|improve this answer



























              0















              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.






              share|improve this answer

























                0












                0








                0








                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.






                share|improve this answer














                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 8:07









                Zhi Lv - MSFTZhi Lv - MSFT

                740135




                740135





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript