I've started getting slow responses for every single page in my website. I'm not sure how this came about.
Phoenix logging reports micro or milliseconds, yet the actual response time has a noticeable delay, always around half a second as reported by the browser dev tools.
In an attempt to examine the cause, I created a minimal controller:
defmodule MyApp.HelloController do
use Phoenix.Controller
def index(conn, _params) do
text(conn, "Hello")
end
end
# router
get "/hello", HelloController, :index
I also completely cleared the :browser
pipeline.
The response time is the same, slow, half a second as above.
How might I determine the cause of this?
Edit: I'm using localhost:4000 on my development computer. I also did a phoenix.new helloworld fresh project – it works normally.
I notice the live reload websocket request to http://localhost:4000/phoenix/live_reload/socket/websocket?vsn=1.0.0 also has this same half-second delay too.
/web
during runtime, maybe that's the issue – Jonas Dellinger