Slow HTTP call performance through Chrome

I have an ASP.NET web API that provides all verbs - the methods are mostly empty.

To run the project, you can do this: unscrew the new asp.net web project from VS 2017 - then select the web API. When the project is created, perform a cleanup and then rebuild. Open the "ValuesController", place a breakpoint inside the PUT method and run the project.

Here is the code for the API (controller code - I added a line in the PUT method):

public class ValuesController : ApiController
{
    // GET api/values
    public IEnumerable<string> Get()
    {
        return new string[] { "value1", "value2" };
    }

    // GET api/values/5
    public string Get(int id)
    {
        return "value";
    }

    // POST api/values
    public void Post([FromBody]string value)
    {
    }

    // PUT api/values/5
    public void Put(int id, [FromBody]string value)
    {
        var x = "value: " + value;
    }

    // DELETE api/values/5
    public void Delete(int id)
    {
    }
}

I do not have the same problem or time difference (or they are very minor) for other HTTP methods (GET, POST, DELETE).

GET data synchronization:

GET data synchronization

POST sync data:

POST sync data

DELETE synchronization data:

DELETE temporary data

PUT temporary data data via IE :

enter image description here

- PUT CHROME:

PUT Temporary Data


API , API http://test-server-01/api/values/1 .., PUT .

: - , ? PUT VERBS? Chrome - IE, .


[]

Chrome Dev Tools, , (TTFB). :

enter image description here


[ ]

IE Chrome Fiddler. .

enter image description here

enter image description here

PUT IE Chrome. Chrome ~ 8 , IE - ~ 4 .

, POST IE Chrome - ~ 20 ~ 50 ( Chrome ).

DELETE POST , ~ 10 ~ 18 (Chrome ).


[ ]

MCVE - . , VS 2017, localhost Chrome - / , PUT. , , POST DELETE.

, , , , . ? Proxy? , , POST DELETE GET, ? IE PUT - /?


[ ]

PUT curl, bash - , , 8 CHROME.

enter image description here

+6

All Articles