IIS & Chrome: failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING

后端 未结 6 1738
感情败类
感情败类 2020-12-06 00:27

I recently came across a Chrome issue which I think is worth sharing it with you.

I worked on a self written API using an HttpHandler which primary should return jso

6条回答
  •  一个人的身影
    2020-12-06 00:34

    In my case, the problem was cache-related and was happening when doing a CORS request.

    Forcing the response header Cache-Control to no-cache resolved my issue:

    [ using Symfony HttpFoundation component ]

    headers->add(array(
       'Cache-Control' => 'no-cache'
    ));
    

提交回复
热议问题