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.
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
.