none
Cached API call issue in Edge

    Question

  • Hi,

    I have been developing a WepAPI application using Angular JS. While testing API call on Edge's developer tools, I can see a cached API call which was not observed on any other browser and fiddler.  I've cleared all history, cache, cookie and app data but the issue still persists. 

    Please find below image for clarification and let me know what will be the solution to avoid this call.

    https://filestore.community.support.microsoft.com/api/images/8762e66e-636a-4a2e-9307-49fb073646d3?upload=true


    Thursday, March 08, 2018 10:50 AM

All replies

  • Hi Nikhilesh-Shinde,

    According to your image, I found you send two request to web api.

    One is post method, the another is get method.

    Normally web api will not enable cache for api call.

    Have you enabled the web api cache by yourself?

    Could you please post the get method's details response?

    Best Regard,

    Brando


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 12, 2018 2:31 AM
  • Hi Brando,

    Thanks for the reply. 

    Actually, I'm not sending two requests but only one. As you can see in the image upon first POST request (which returns no content) calls GET request (with an empty request and response header) from the cache. Also, I dont have any GET API method in the controller. 

    https://filestore.community.support.microsoft.com/api/images/de6f9b40-19c3-44a8-9521-564f63b0bb9f?upload=true

    As you can see in below image, it says this request redirected from previous POST Request.

    https://filestore.community.support.microsoft.com/api/images/167f3227-72bb-427b-89ea-3a5245ad3397?upload=true


    Thursday, March 15, 2018 9:11 AM