Any ideas why my phoenix app keeps rendering index page unless i do a hard reload in chrome and firefox (safari works as expected btw)?
plug Plug.Static,
at: "/admin", from: {:qsi_search_service, "priv/static"}, gzip: false
plug Plug.Static.IndexHtml, at: "/docs"
plug Plug.Static,
at: "/docs", from: {:qsi_search_service, "priv/static/docs"}, gzip: false
plug Plug.Static.IndexHtml, at: "/"
plug Plug.Static,
at: "/", from: {:qsi_search_service, "priv/qsi_search_service/build/"}
this is endpoints.ex
and these are the routes
scope "/docs", QsiSearchServiceWeb do
pipe_through :browser # Use the default browser stack
...
end
scope "/admin", QsiSearchServiceWeb do
pipe_through :browser # Change this to admin stack once coherence is imported
...
end
# Other scopes may use custom stacks.
scope "/api", QsiSearchServiceWeb do
pipe_through :api
...
end
react app is served here: priv/qsi_search_service/build/
docs are some static api docs i generate using bluebird
is it possible that react-router is causing this issue, and if so why is it working in safari?
elixir and phoenix versions:
phoenix, "~> 1.3.0",
elixir: "~> 1.4",