Skip to content

When js file doesn't exist, chrome sometimes makes two requests #120

Open
@vladshcherbin

Description

Hey,

I'm was trying a basic koa server setup and saw an interesting thing - if I request a js file which doesn't exist, chrome makes two requests sometimes for it which can be seen on network a panel. Chrome doesn't always make two requests, only sometimes (like 50% or smth).

I found out this using koa-static, but it also happens with bare koa-send as it's used inside of koa-static.

Any idea why this can be happening? I can make a demo repo if needed.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions