Skip to content

Conversation

@jacobtylerwalls
Copy link
Member

Hello! I had this lying around from a rapid prototype I made for someone a few years ago that still is in use 🍻


Before
The default soundfont URL ends in a slash, but fixUrls() immediately normalized it to end in a double-slash due to a bug in simplifyPath().

This caused 301 Moved Permanently redirect responses when requested.

Now
No double slash, browser can serve straight from cache without asking for & getting a redirect.

Example
Was requesting:
/soundfonts/midi-js-soundfonts-master/FluidR3_GM//acoustic_grand_piano-ogg.js
but always redirected to:
/soundfonts/midi-js-soundfonts-master/FluidR3_GM/acoustic_grand_piano-ogg.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant