leptos-rs / start-axum

Starter template for use with the Leptos web framework and Axum.
The Unlicense
141 stars 26 forks source link

Pass accept-encoding header only #41

Closed CorvusPrudens closed 5 months ago

CorvusPrudens commented 5 months ago

This PR fixes a subtle issue introduced by #38. When all headers are passed through to the ServeDir service, requests for assets that can be cached may 404 after the first request. This seems to happen almost at random.

I was unable to find any documentation about this behavior on the ServeDir page, so I'm not completely sure what's causing it. Regardless, the intent of #38 is preserved even if all headers are excluded besides accept-encoding.