-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
👋
Environment
- Elixir version (elixir -v): 1.18.2
- Phoenix version (mix deps): 1.7.14
- Operating system:
Actual behavior
It seems like a static digested site.webmanifest
is not being served by Plug.Static.
def static_paths, do: ~w(assets fonts images favicon.ico robots.txt site.webmanifest)
iex> File.ls("lib/bend-0.1.0/priv/static")
#==> {:ok,
#==> [..., "site-c0c4f1c0f3ba8cb5034fdd9d1aafa9aa.webmanifest",
#==> "favicon-91f37b602a111216f1eef3aa337ad763.ico", "site.webmanifest",
#==> "favicon-07f80321aa54b0c7f90564a833181023.ico"]}
the Plug.Static init
ed opts are
%{
at: [],
from: {:my_app, "priv/static"},
headers: %{},
only_rules: {["assets", "fonts", "images", "favicon.ico", "robots.txt",
"site.webmanifest"], []},
encodings: [{"gzip", ".gz"}],
content_types: %{},
et_cache: "public",
et_generation: nil,
qs_cache: "public, max-age=31536000, immutable"
}
and the requested path for site.webmanifest is
10:22:46.417 request_id=GDdik4hrQd68HZoAGg-D [info] GET /site-c0c4f1c0f3ba8cb5034fdd9d1aafa9aa.webmanifest
10:22:46.419 request_id=GDdik4hrQd68HZoAGg-D [info] Sent 404 in 1ms
I think the problem might also affect (digested) favicons and robots.txt but I haven't checked.
Expected behavior
All digested files get served :)
Metadata
Metadata
Assignees
Labels
No labels