You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It serves assets (in this case script.js) from the url /assets/script.js, but unexpectedly also from /script.js, because the whole assets folder is used as fallback instead of just the index.html file.
I expected to see this happen:
url /script.js should fallback to index.html
Instead, this happened:
url /script.js responded with script.js
The text was updated successfully, but these errors were encountered:
Bug Report
Version
0.7.5
Description
Unexpected behaviour in example
static-file-server
, functionusing_serve_dir_with_assets_fallback()
:It serves assets (in this case
script.js
) from the url/assets/script.js
, but unexpectedly also from/script.js
, because the wholeassets
folder is used as fallback instead of just theindex.html
file.I expected to see this happen:
url
/script.js
should fallback toindex.html
Instead, this happened:
url
/script.js
responded withscript.js
The text was updated successfully, but these errors were encountered: